Skip to content

Commit ea923b4

Browse files
committed
Refactor: replace make_simplified_union with UnionType.make_union in binder.py (#8624)
This commit replaces all calls to make_simplified_union with UnionType.make_union in this file, as part of the codebase modernization effort in issue #8624.
1 parent e7405c9 commit ea923b4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mypy/binder.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,7 @@ def update_from_options(self, frames: list[Frame]) -> bool:
277277
# interfere with our (hacky) TypeGuard support.
278278
type = possible_types[0]
279279
else:
280-
type = make_simplified_union(possible_types)
280+
type = UnionType.make_union(possible_types)
281281
# Legacy guard for corner case when the original type is TypeVarType.
282282
if isinstance(declaration_type, TypeVarType) and not is_subtype(
283283
type, declaration_type

0 commit comments

Comments
 (0)