Skip to content

Commit e951c33

Browse files
committed
Tweak test to not overwrite type
1 parent 93dcd98 commit e951c33

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/test_structure.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ def test_stringifying_sets(set_and_type):
130130
if is_bare(input_set_type):
131131
input_set_type = input_set_type[str]
132132
else:
133-
input_set_type.__args__ = (str,)
133+
input_set_type = input_set_type.__origin__[str]
134134
converted = converter.structure(set_, input_set_type)
135135
assert len(converted) == len(set_)
136136
for e in set_:

0 commit comments

Comments
 (0)