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
``Final`` may be wrapped only by other type qualifiers (e.g. ``ClassVar`` or
``Annotation``). It cannot be used in a type parameter (e.g.
``list[Final[int]]`` is not permitted.)
I believe Annotation means Annotated? If so, I can open a PR fixing this.
Ideally we could also update the conformance tests to add an extra final_annotated: Annotated[Final[int], ...]. It will be interesting to see the output, as mypy seems to reject it.
Good call, that should say Annotated. And yes, the conformance test suite should be expanded to cover those, and mypy should be fixed to follow the spec here.
Activity
JelleZijlstra commentedon Jul 16, 2024
Good call, that should say
Annotated. And yes, the conformance test suite should be expanded to cover those, and mypy should be fixed to follow the spec here.erictraut commentedon Jul 16, 2024
The conformance tests already cover this case, and mypy's nonconformance has already been noted.