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
A bit obscure and perhaps not a supported pattern, but using __init_subclass__ to turn subclasses into dataclasses in order to remove the need for library users to use the @dataclass decorator makes mypy confused about how many args the subclass' constructor expects.
Bug Report
A bit obscure and perhaps not a supported pattern, but using
__init_subclass__
to turn subclasses into dataclasses in order to remove the need for library users to use the@dataclass
decorator makes mypy confused about how many args the subclass' constructor expects.To Reproduce
https://mypy-play.net/?mypy=latest&python=3.10&gist=d5900693474f425fc04dc5d36bd0eb2d
Expected Behavior
No errors from mypy.
Actual Behavior
Your Environment
mypy.ini
(and other config files): NoneThe text was updated successfully, but these errors were encountered: