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
The behavior of Annotated has been changed so that it is allowed at runtime to wrap ClassVar and Final. This change helps avoid friction with other users of annotations; see https://bugs.python.org/issue46491 for context. This change has landed in 3.11 and has been backported to 3.9, 3.10, and typing_extensions. mypy should follow suit in allowing the wrapping in order to allow the friction lifting to happen in practice.
antest/antest.py:4: error: Invalid type: ClassVar nested inside other typeantest/antest.py:5: error: Final can be only used as an outermost qualifier in a variable annotationFound 2 errors in 1 file (checked 1 source file)
Your Environment
Mypy version used: 0.931
Mypy command-line flags: none
Mypy configuration options from mypy.ini (and other config files): none
No. That is related (but little different) python typing runtime change, while this issue is for type checker change. I'd forgotten about this mypy issue.
Activity
hmc-cs-mdrissi commentedon Jan 27, 2022
I'd like to take this task. I'm pretty happy my comment led to this change so I'm happy to cover the pr. I'll try to do it this weekend.
JWCS commentedon Mar 27, 2024
@hmc-cs-mdrissi Is this resolved now with #116069?
hmc-cs-mdrissi commentedon Mar 27, 2024
No. That is related (but little different) python typing runtime change, while this issue is for type checker change. I'd forgotten about this mypy issue.