Skip to content

Commit 87d8ebe

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

1 file changed

Lines changed: 3 additions & 7 deletions

File tree

mypy/checker.py

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1789,15 +1789,11 @@ def require_correct_self_argument(self, func: Type, defn: FuncDef) -> bool:
17891789
isinstance(ref_type, TupleType)
17901790
and isinstance(arg_type, TupleType)
17911791
and ref_type.partial_fallback.type.tuple_type is not None
1792-
and any(
1793-
isinstance(item, TypeVarType) and item.values
1794-
for item in ref_type.items
1795-
)
1792+
and any(isinstance(item, TypeVarType) and item.values for item in ref_type.items)
17961793
)
17971794

1798-
if (
1799-
not skip_namedtuple_constrained_check
1800-
and not is_subtype(ref_type, erased, ignore_type_params=True)
1795+
if not skip_namedtuple_constrained_check and not is_subtype(
1796+
ref_type, erased, ignore_type_params=True
18011797
):
18021798
if (
18031799
isinstance(erased, Instance)

0 commit comments

Comments
 (0)