Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 2eaa35c

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

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

mypy/constraints.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020
ArgKind,
2121
TypeInfo,
2222
)
23-
from mypy.type_visitor import ALL_STRATEGY, BoolTypeQuery
2423
from mypy.types import (
2524
TUPLE_LIKE_INSTANCE_NAMES,
2625
AnyType,
@@ -401,7 +400,10 @@ def _infer_constraints(
401400
# variable if possible. This seems to help with some real-world
402401
# use cases.
403402
return any_constraints(
404-
[infer_constraints_if_possible(template, a_item, direction) for a_item in actual.items],
403+
[
404+
infer_constraints_if_possible(template, a_item, direction)
405+
for a_item in actual.items
406+
],
405407
eager=True,
406408
)
407409
if direction == SUPERTYPE_OF and isinstance(template, UnionType):

0 commit comments

Comments
 (0)