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.
1 parent 22c8dfd commit 166776bCopy full SHA for 166776b
mypy/plugins/attrs.py
@@ -1094,7 +1094,7 @@ def _get_expanded_attr_types(
1094
_fail_not_attrs_class(ctx, display_typ, parent_typ)
1095
return None
1096
if isinstance(init_func, AnyType):
1097
- return AnyType(TypeOfAny.special_form)
+ return None
1098
init_func = expand_type_by_instance(init_func, typ)
1099
# [1:] to skip the self argument of AttrClass.__init__
1100
field_names = cast(list[str], init_func.arg_names[1:])
0 commit comments