Skip to content

Commit 3c29b1d

Browse files
committed
Refactor: replace make_simplified_union with UnionType.make_union in plugins/attrs.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 65e00ff commit 3c29b1d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mypy/plugins/attrs.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -782,7 +782,7 @@ def _parse_converter(
782782
types.append(item.arg_types[0])
783783
# Make a union of all the valid types.
784784
if types:
785-
converter_info.init_type = make_simplified_union(types)
785+
converter_info.init_type = UnionType.make_union(types)
786786

787787
if is_attr_converters_optional and converter_info.init_type:
788788
# If the converter was attr.converter.optional(type) then add None to

0 commit comments

Comments
 (0)