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
We have a use-case where we sometimes import Annotated under a different name (since there is a naming collision with an existing object callled Annotations and Annotated[Annotations, ...] can be hard to read. Unfortunately, it looks like if we try to do this, then we fail with a false positive:
Everything works fine if we do not use the Annotated as WithSchema import alias though. Would it be possible to extend the logic to also handle such a case?
We have a use-case where we sometimes import
Annotated
under a different name (since there is a naming collision with an existing object callledAnnotations
andAnnotated[Annotations, ...]
can be hard to read. Unfortunately, it looks like if we try to do this, then we fail with a false positive:fails pyflakes with
F821 undefined name 'hello
.Everything works fine if we do not use the
Annotated as WithSchema
import alias though. Would it be possible to extend the logic to also handle such a case?cc @nishkakar @ezrilow
The text was updated successfully, but these errors were encountered: