Closed intgr closed 2 years ago
Marking __dataclass_fields__
as a ClassVar
in the protocol makes sense imo. It's unfortunate that older mypy doesn't accept that, though.
@oxan Are you fixing this or should I submit a PR?
I can commit a fix tomorrow.
When using code like:
mypy version 0.990 will display a warning like:
I am not yet sure whether this is a bug or intentional change, reported to mypy for clarification: https://github.com/python/mypy/issues/14029