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 |
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. |
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:
All reactions