Open Avishayy opened 5 months ago
The typing spec (and the original PEP 681) are not clear on whether this should work. Currently, it does not work in any of the major type checkers. I think one could make a good argument in favor of it. It would be good for the typing spec to be updated to clarify. @Avishayy, if you're interested in pursuing this, here's a link to the process for modifying the typing spec.
Bug Report
A class inheriting a class with kw_only=True and using a dataclass_transform doesn't recognize kw_only being set, even though in runtime it does not yield an error. Originally found in sqlalchemy's usage (https://github.com/sqlalchemy/sqlalchemy/issues/11485)
To Reproduce
Expected Behavior
No error.
Actual Behavior
Your Environment
mypy.ini
(and other config files):