Skip to content

Commit

Permalink
Reduce unit tests to just the ones failing before this patch
Browse files Browse the repository at this point in the history
  • Loading branch information
erikkemperman committed Jul 4, 2023
1 parent bab02d7 commit 8fdc948
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 1,078 deletions.
2 changes: 1 addition & 1 deletion mypy/semanal.py
Original file line number Diff line number Diff line change
Expand Up @@ -1010,7 +1010,6 @@ def is_expected_self_type(self, typ: Type, is_classmethod: bool) -> bool:
sym = self.lookup_qualified(typ.name, typ, suppress_errors=True)
if (
sym is not None
and typ.args
and (
sym.fullname == "typing.Type"
or (
Expand All @@ -1022,6 +1021,7 @@ def is_expected_self_type(self, typ: Type, is_classmethod: bool) -> bool:
)
)
)
and typ.args
):
return self.is_expected_self_type(typ.args[0], is_classmethod=False)
return False
Expand Down
Loading

0 comments on commit 8fdc948

Please sign in to comment.