Skip to content

Commit

Permalink
Update attrs typing defs
Browse files Browse the repository at this point in the history
  • Loading branch information
RNKuhns committed Apr 11, 2024
1 parent 83782d1 commit 2305452
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/attr/__init__.pyi
Expand Up @@ -249,6 +249,7 @@ def attrs(
field_transformer: _FieldTransformer | None = ...,
match_args: bool = ...,
unsafe_hash: bool | None = ...,
only_non_default_attr_in_repr: bool = ...,
) -> _C: ...
@overload
@dataclass_transform(order_default=True, field_specifiers=(attrib, field))
Expand Down Expand Up @@ -277,6 +278,7 @@ def attrs(
field_transformer: _FieldTransformer | None = ...,
match_args: bool = ...,
unsafe_hash: bool | None = ...,
only_non_default_attr_in_repr: bool = ...,
) -> Callable[[_C], _C]: ...
def fields(cls: type[AttrsInstance]) -> Any: ...
def fields_dict(cls: type[AttrsInstance]) -> dict[str, Attribute[Any]]: ...
Expand Down

0 comments on commit 2305452

Please sign in to comment.