Skip to content

Commit 7579ff2

Browse files
committed
Fix whatever typing change causes pyright to think frozen classes aren't frozen.
1 parent 186e4d1 commit 7579ff2

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

referencing/_attrs.pyi

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,13 @@ _T = TypeVar("_T")
88

99
def __dataclass_transform__(
1010
*,
11-
eq_default: bool = ...,
12-
order_default: bool = ...,
13-
kw_only_default: bool = ...,
11+
frozen_default: bool = False,
1412
field_descriptors: tuple[Union[type, Callable[..., Any]], ...] = ...,
1513
) -> Callable[[_T], _T]: ...
1614
@__dataclass_transform__(field_descriptors=(attrib, field))
1715
def define(cls: type[_T]) -> type[_T]: ...
18-
19-
frozen = define
16+
@__dataclass_transform__(
17+
frozen_default=True,
18+
field_descriptors=(attrib, field),
19+
)
20+
def frozen(cls: type[_T]) -> type[_T]: ...

0 commit comments

Comments
 (0)