Skip to content

Commit

Permalink
Improve accuracy of dataclasses.Field (#12082)
Browse files Browse the repository at this point in the history
  • Loading branch information
max-muoto authored Jun 24, 2024
1 parent de22c30 commit 6b2033a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion stdlib/dataclasses.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ class _DefaultFactory(Protocol[_T_co]):

class Field(Generic[_T]):
name: str
type: Type[_T]
type: Type[_T] | str | Any
default: _T | Literal[_MISSING_TYPE.MISSING]
default_factory: _DefaultFactory[_T] | Literal[_MISSING_TYPE.MISSING]
repr: bool
Expand Down

0 comments on commit 6b2033a

Please sign in to comment.