GenericAlias
is not compatible with type
?
#1843
Unanswered
shcheklein
asked this question in
Q&A
Replies: 2 comments 2 replies
-
Yes, it is expected. MyPy does not evaluate |
Beta Was this translation helpful? Give feedback.
2 replies
-
Using type in type hints confusing the type checker. It expects a different type or generic type not type evaluations inside type annotations. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Trying to understand if this is a bug or not:
a: type = list[int]
works fine, but:
a: type = list[type(1)]
gives:
Beta Was this translation helpful? Give feedback.
All reactions