[issue45384] Accept Final as indicating ClassVar for dataclass
Gregory Beauregard
report at bugs.python.org
Mon Oct 11 00:48:31 EDT 2021
Gregory Beauregard <greg at greg.red> added the comment:
Thanks for the feedback Carl.
Your proposed nesting PEP change is not possible: ClassVar[Final[int]] isn't valid because Final[int] isn't a type. As far as I know this would need type intersections to be possible.
I'm going to try sending a one-off email to the PEP authors since probably whatever happens the PEP needs a clarification anyway.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue45384>
_______________________________________
More information about the Python-bugs-list
mailing list