Skip to content

Commit fb6072e

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

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

mypy/constraints.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -506,9 +506,7 @@ def handle_recursive_union(template: UnionType, actual: Type, direction: int) ->
506506
# the union in two parts, and try inferring sequentially.
507507
non_type_var_items = [t for t in template.items if not isinstance(t, TypeVarType)]
508508
type_var_items = [t for t in template.items if isinstance(t, TypeVarType)]
509-
ret = infer_constraints(
510-
UnionType.make_union(non_type_var_items), actual, direction
511-
)
509+
ret = infer_constraints(UnionType.make_union(non_type_var_items), actual, direction)
512510
if ret or any(mypy.subtypes.is_same_type(t, actual) for t in non_type_var_items):
513511
return ret
514512
ret = infer_constraints(UnionType.make_union(type_var_items), actual, direction)

0 commit comments

Comments
 (0)