Replies: 1 comment 2 replies
-
The
In any case, pyright is working as intended for the code above. |
Beta Was this translation helpful? Give feedback.
-
The
In any case, pyright is working as intended for the code above. |
Beta Was this translation helpful? Give feedback.
-
I am backporting the slots creating from Python 3.10 to older versions and want to use
dataclass_transform()
to help type checkers understand me inserting slots. The issue is that it doesn't appear that Pyright is honouring the defaults (which differ fromdataclasses
in that it is True).In the following example, I switched to
init
because it is easier to showcase:I'd expect the code to pass, as I want Pyright to follow my defaults (no
__init__()
defined).Beta Was this translation helpful? Give feedback.
All reactions