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 e777bca commit 5467a2aCopy full SHA for 5467a2a
1 file changed
tests/test_generics.py
@@ -4,7 +4,6 @@
4
import pytest
5
from attrs import asdict, define
6
7
-import cattrs
8
from cattrs import BaseConverter, Converter
9
from cattrs._compat import Protocol
10
from cattrs._generics import deep_copy_with
@@ -364,6 +363,6 @@ class GenericEntity(GenericProtocol[int]):
364
363
365
def test_generics_with_forward_refs():
366
"""Type resolution works with forward references."""
367
- converter = cattrs.Converter()
+ converter = Converter()
368
dct = converter.unstructure(GenericClass(42), unstructure_as=GenericClass[int])
369
assert dct == {"t": 42}
0 commit comments