Skip to content

Commit ae65ff1

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 2f5e41f commit ae65ff1

1 file changed

Lines changed: 3 additions & 6 deletions

File tree

‎mypy/semanal.py‎

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2661,12 +2661,9 @@ def analyze_base_classes(
26612661
deferred_member_bases.append((member, base_expr))
26622662
bases.append((AnyType(TypeOfAny.special_form), base_expr))
26632663
continue
2664-
if (
2665-
isinstance(member_type, AnyType)
2666-
or (
2667-
isinstance(member_type, Instance)
2668-
and member_type.type.fullname == "builtins.type"
2669-
)
2664+
if isinstance(member_type, AnyType) or (
2665+
isinstance(member_type, Instance)
2666+
and member_type.type.fullname == "builtins.type"
26702667
):
26712668
# The attribute is a type object. Treat it like a variable
26722669
# annotated with ``type``, which is accepted as a base class.

0 commit comments

Comments
 (0)