diff --git a/referencing/_attrs.pyi b/referencing/_attrs.pyi index 4c3c47d..278e410 100644 --- a/referencing/_attrs.pyi +++ b/referencing/_attrs.pyi @@ -8,12 +8,13 @@ _T = TypeVar("_T") def __dataclass_transform__( *, - eq_default: bool = ..., - order_default: bool = ..., - kw_only_default: bool = ..., + frozen_default: bool = False, field_descriptors: tuple[Union[type, Callable[..., Any]], ...] = ..., ) -> Callable[[_T], _T]: ... @__dataclass_transform__(field_descriptors=(attrib, field)) def define(cls: type[_T]) -> type[_T]: ... - -frozen = define +@__dataclass_transform__( + frozen_default=True, + field_descriptors=(attrib, field), +) +def frozen(cls: type[_T]) -> type[_T]: ...