Closed Viicos closed 2 months ago
Since pyright 1.1.372, the default values of dataclasses is lost in the generated __init__ signature:
1.1.372
__init__
Code sample in pyright playground
from dataclasses import dataclass, field @dataclass class A: a: int = 2 b: int = field(default=2) A()
In pyright 1.1.371:
1.1.371
This is addressed in pyright 1.1.377.
Since pyright
1.1.372
, the default values of dataclasses is lost in the generated__init__
signature:Code sample in pyright playground
In pyright
1.1.371
: