Skip to content
Closed
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
6 changes: 3 additions & 3 deletions stdlib/dataclasses.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -72,15 +72,15 @@ class _DefaultFactory(Protocol[_T_co]):
class Field(Generic[_T]):
name: str
type: Type[_T]
default: _T
default_factory: _DefaultFactory[_T]
default: _T | _MISSING_TYPE
default_factory: _DefaultFactory[_T] | _MISSING_TYPE
repr: bool
hash: bool | None
init: bool
compare: bool
metadata: types.MappingProxyType[Any, Any]
if sys.version_info >= (3, 10):
kw_only: bool
kw_only: bool | _MISSING_TYPE
def __init__(
self,
default: _T,
Expand Down