@@ -115,8 +115,10 @@ class object:
115
115
def __init_subclass__ (cls ) -> None : ...
116
116
117
117
class staticmethod (Generic [_R_co ]):
118
- __func__ : Callable [..., _R_co ]
119
- __isabstractmethod__ : bool
118
+ @property
119
+ def __func__ (self ) -> Callable [..., _R_co ]: ...
120
+ @property
121
+ def __isabstractmethod__ (self ) -> bool : ...
120
122
def __init__ (self : staticmethod [_R_co ], __f : Callable [..., _R_co ]) -> None : ...
121
123
def __get__ (self , __obj : _T , __type : type [_T ] | None = ...) -> Callable [..., _R_co ]: ...
122
124
if sys .version_info >= (3 , 10 ):
@@ -126,8 +128,10 @@ class staticmethod(Generic[_R_co]):
126
128
def __call__ (self , * args : Any , ** kwargs : Any ) -> _R_co : ...
127
129
128
130
class classmethod (Generic [_R_co ]):
129
- __func__ : Callable [..., _R_co ]
130
- __isabstractmethod__ : bool
131
+ @property
132
+ def __func__ (self ) -> Callable [..., _R_co ]: ...
133
+ @property
134
+ def __isabstractmethod__ (self ) -> bool : ...
131
135
def __init__ (self : classmethod [_R_co ], __f : Callable [..., _R_co ]) -> None : ...
132
136
def __get__ (self , __obj : _T , __type : type [_T ] | None = ...) -> Callable [..., _R_co ]: ...
133
137
if sys .version_info >= (3 , 10 ):
@@ -136,19 +140,28 @@ class classmethod(Generic[_R_co]):
136
140
__wrapped__ : Callable [..., _R_co ]
137
141
138
142
class type :
139
- __base__ : type
143
+ @property
144
+ def __base__ (self ) -> type : ...
140
145
__bases__ : tuple [type , ...]
141
- __basicsize__ : int
142
- __dict__ : dict [str , Any ]
143
- __dictoffset__ : int
144
- __flags__ : int
145
- __itemsize__ : int
146
+ @property
147
+ def __basicsize__ (self ) -> int : ...
148
+ @property
149
+ def __dict__ (self ) -> types .MappingProxyType [str , Any ]: ... # type: ignore[override]
150
+ @property
151
+ def __dictoffset__ (self ) -> int : ...
152
+ @property
153
+ def __flags__ (self ) -> int : ...
154
+ @property
155
+ def __itemsize__ (self ) -> int : ...
146
156
__module__ : str
147
- __mro__ : tuple [type , ...]
157
+ @property
158
+ def __mro__ (self ) -> tuple [type , ...]: ...
148
159
__name__ : str
149
160
__qualname__ : str
150
- __text_signature__ : str | None
151
- __weakrefoffset__ : int
161
+ @property
162
+ def __text_signature__ (self ) -> str | None : ...
163
+ @property
164
+ def __weakrefoffset__ (self ) -> int : ...
152
165
@overload
153
166
def __init__ (self , __o : object ) -> None : ...
154
167
@overload
0 commit comments