We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
weakref_slot
@dataclass
1 parent 4bcb1a9 commit ef878e9Copy full SHA for ef878e9
stdlib/dataclasses.pyi
@@ -79,7 +79,23 @@ else:
79
@overload
80
def dataclass(_cls: None) -> Callable[[type[_T]], type[_T]]: ...
81
82
-if sys.version_info >= (3, 10):
+if sys.version_info >= (3, 11):
83
+ @overload
84
+ def dataclass(
85
+ *,
86
+ init: bool = ...,
87
+ repr: bool = ...,
88
+ eq: bool = ...,
89
+ order: bool = ...,
90
+ unsafe_hash: bool = ...,
91
+ frozen: bool = ...,
92
+ match_args: bool = ...,
93
+ kw_only: bool = ...,
94
+ slots: bool = ...,
95
+ weakref_slot: bool = ...,
96
+ ) -> Callable[[type[_T]], type[_T]]: ...
97
+
98
+elif sys.version_info >= (3, 10):
99
100
def dataclass(
101
*,
0 commit comments