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 fcbe668 commit dafd559Copy full SHA for dafd559
1 file changed
tests/test_generics.py
@@ -364,5 +364,7 @@ class GenericEntity(GenericProtocol[int]):
364
def test_generics_with_stringified_annotations():
365
"""Type resolution works with stringified annotations."""
366
converter = Converter()
367
- dct = converter.unstructure(GenericClass(42), unstructure_as=GenericClass[int])
+ inst = GenericClass(42)
368
+ dct = converter.unstructure(inst, unstructure_as=GenericClass[int])
369
assert dct == {"t": 42}
370
+ assert converter.structure(dct, GenericClass[int])
0 commit comments