File tree Expand file tree Collapse file tree 3 files changed +9
-0
lines changed Expand file tree Collapse file tree 3 files changed +9
-0
lines changed Original file line number Diff line number Diff line change
1
+ The type stubs for ``attr.s() `` and ``attr.make_class() `` are not missing the *collect_by_mro * argument anymore.
Original file line number Diff line number Diff line change @@ -273,6 +273,7 @@ def attrs(
273
273
eq : Optional [bool ] = ...,
274
274
order : Optional [bool ] = ...,
275
275
auto_detect : bool = ...,
276
+ collect_by_mro = ...,
276
277
getstate_setstate : Optional [bool ] = ...,
277
278
on_setattr : Optional [_OnSetAttrArgType ] = ...,
278
279
field_transformer : Optional [_FieldTransformer ] = ...,
@@ -297,6 +298,7 @@ def attrs(
297
298
eq : Optional [bool ] = ...,
298
299
order : Optional [bool ] = ...,
299
300
auto_detect : bool = ...,
301
+ collect_by_mro = ...,
300
302
getstate_setstate : Optional [bool ] = ...,
301
303
on_setattr : Optional [_OnSetAttrArgType ] = ...,
302
304
field_transformer : Optional [_FieldTransformer ] = ...,
@@ -386,6 +388,7 @@ def make_class(
386
388
auto_exc : bool = ...,
387
389
eq : Optional [bool ] = ...,
388
390
order : Optional [bool ] = ...,
391
+ collect_by_mro = ...,
389
392
on_setattr : Optional [_OnSetAttrArgType ] = ...,
390
393
field_transformer : Optional [_FieldTransformer ] = ...,
391
394
) -> type : ...
Original file line number Diff line number Diff line change @@ -244,3 +244,8 @@ class NGFrozen:
244
244
245
245
# XXX: needs support in mypy
246
246
# ngf = NGFrozen(1)
247
+
248
+
249
+ @attr .s (collect_by_mro = True )
250
+ class MRO :
251
+ pass
You can’t perform that action at this time.
0 commit comments