8000
mypy should reject non-existent fields with dataclasses.replace #14793
Labels
8000
This issue was originally reported by @LunarLanding here:
microsoft/pyright#1047
I believe mypy should reject non-existent fields when dataclasses.replace is used.
To Reproduce
Mypy Playground
Expected Behavior
Error: "A" has no attribute "not_a_field" [attr-defined]
Actual Behavior
No error
Related Issue
#14525
The text was updated successfully, but these errors were encountered: