We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e951c33 commit 6a86c56Copy full SHA for 6a86c56
tests/test_structure.py
@@ -31,7 +31,7 @@
31
from pytest import raises
32
33
from cattr import Converter
34
-from cattr._compat import is_bare, is_union_type
+from cattr._compat import copy_with, is_bare, is_union_type
35
from cattr.converters import NoneType
36
from cattr.errors import StructureHandlerNotFoundError
37
@@ -130,7 +130,7 @@ def test_stringifying_sets(set_and_type):
130
if is_bare(input_set_type):
131
input_set_type = input_set_type[str]
132
else:
133
- input_set_type = input_set_type.__origin__[str]
+ input_set_type = copy_with(input_set_type, str)
134
converted = converter.structure(set_, input_set_type)
135
assert len(converted) == len(set_)
136
for e in set_:
0 commit comments