You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Conditionally set the type hint based on importablity
# TODO: Clean this up
if dependencies.extras:
engine: Optional[AsyncEmbeddingEngine] = None
else:
engine = None
Solution
Above
Alternatives
No response
Explanation
Just fyi, send from mobile
Examples
No response
Additional context
No response
Acknowledgements
I have looked for similar requests before submitting this one.
I understand that the developers have lives and my issue will be answered when possible.
I understand the developers of this program are human, and I will make my requests politely.
The text was updated successfully, but these errors were encountered:
Problem
I saw the following pattern in your codebase!
Use: - https://docs.python.org/3/library/typing.html#typing.TYPE_CHECKING TYPE_CHECKING variable to only import type hints when needed.
And
defered type hints as forward reference: https://stackoverflow.com/questions/51629105/python-type-hint-given-as-a-string
Solution
Above
Alternatives
No response
Explanation
Just fyi, send from mobile
Examples
No response
Additional context
No response
Acknowledgements
The text was updated successfully, but these errors were encountered: