kw_only
dataclass fields confuse mypy on argument order
#19017
Labels
kw_only
dataclass fields confuse mypy on argument order
#19017
Bug Report
This example (derived from #17731) runs flawlessly on Python 3.13:
To Reproduce
https://mypy-play.net/?mypy=latest&python=3.12&flags=strict&gist=ce6c431acd9f161f68d395b12cc966e9
Expected Behavior
Mypy should accept the code. Its output suggests it is confused about positional argument order (and their number).
Actual Behavior
Mypy 1.15 says:
Your Environment
mypy.ini
(and other config files): noneThe text was updated successfully, but these errors were encountered: