Skip to content

Commit c9b465f

Browse files
committed
fix dict union for 3.8
1 parent aa95616 commit c9b465f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

mypy/checker.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8108,7 +8108,9 @@ def is_unsafe_overlapping_overload_signatures(
81088108
signature = expand_callable_self(signature)
81098109
other = expand_callable_self(other)
81108110

8111-
all_variables = {v.id: v for v in signature.variables} | {v.id: v for v in other.variables}
8111+
all_variables = {v.id: v for v in signature.variables}
8112+
all_variables.update({v.id: v for v in other.variables})
8113+
81128114
for tvar_map in get_type_var_group_variants(all_variables.values()):
81138115
sig_variant = expand_type(signature, tvar_map).copy_modified(variables=[])
81148116
other_variant = expand_type(other, tvar_map).copy_modified(variables=[])

0 commit comments

Comments
 (0)