Skip to content

Commit

Permalink
PEP 681: Fix type annotation of field_descriptors param (#2296)
Browse files Browse the repository at this point in the history
  • Loading branch information
debonte authored Feb 2, 2022
1 parent 74272d5 commit de3626f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pep-0681.rst
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ customization of default behaviors:
eq_default: bool = True,
order_default: bool = False,
kw_only_default: bool = False,
field_descriptors: Tuple[type, ...] = (()),
field_descriptors: tuple[type | Callable[..., Any], ...] = (),
) -> Callable[[_T], _T]: ...
* ``eq_default`` indicates whether the ``eq`` parameter is assumed to
Expand Down Expand Up @@ -556,7 +556,7 @@ following declaration within their type stubs or source files:
eq_default: bool = True,
order_default: bool = False,
kw_only_default: bool = False,
field_descriptors: Tuple[Union[type, Callable[..., Any]], ...] = (()),
field_descriptors: tuple[type | Callable[..., Any], ...] = (),
) -> Callable[[_T], _T]:
# If used within a stub file, the following implementation can
# be replaced with "...".
Expand Down

0 comments on commit de3626f

Please sign in to comment.