Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,6 @@ dev = [
exclude-newer = "1 week"

[tool.uv.exclude-newer-package]
pyrefly = false # need pyrefly 1.2.0; remove after 2026-08-07


[tool.hatch.version]
Expand Down
22 changes: 18 additions & 4 deletions src/attrs/__init__.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,10 @@ def field(
type: type | None = ...,
) -> Any: ...
@overload
@dataclass_transform(field_specifiers=(attrib, field))
@dataclass_transform( # type: ignore[misc]
field_specifiers=(attrib, field),
slots_default=True, # only supported by ty
)
def define(
maybe_cls: _C,
*,
Expand All @@ -185,7 +188,10 @@ def define(
match_args: bool = ...,
) -> _C: ...
@overload
@dataclass_transform(field_specifiers=(attrib, field))
@dataclass_transform( # type: ignore[misc]
field_specifiers=(attrib, field),
slots_default=True, # only supported by ty
)
def define(
maybe_cls: None = ...,
*,
Expand Down Expand Up @@ -214,7 +220,11 @@ def define(
mutable = define

@overload
@dataclass_transform(frozen_default=True, field_specifiers=(attrib, field))
@dataclass_transform( # type: ignore[misc]
frozen_default=True,
field_specifiers=(attrib, field),
slots_default=True, # only supported by ty
)
def frozen(
maybe_cls: _C,
*,
Expand All @@ -240,7 +250,11 @@ def frozen(
match_args: bool = ...,
) -> _C: ...
@overload
@dataclass_transform(frozen_default=True, field_specifiers=(attrib, field))
@dataclass_transform( # type: ignore[misc]
frozen_default=True,
field_specifiers=(attrib, field),
slots_default=True, # only supported by ty
)
def frozen(
maybe_cls: None = ...,
*,
Expand Down
Loading
Loading