Skip to content

Commit 5467a2a

Browse files
committed
Avoid unnecessary import
1 parent e777bca commit 5467a2a

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

tests/test_generics.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
import pytest
55
from attrs import asdict, define
66

7-
import cattrs
87
from cattrs import BaseConverter, Converter
98
from cattrs._compat import Protocol
109
from cattrs._generics import deep_copy_with
@@ -364,6 +363,6 @@ class GenericEntity(GenericProtocol[int]):
364363

365364
def test_generics_with_forward_refs():
366365
"""Type resolution works with forward references."""
367-
converter = cattrs.Converter()
366+
converter = Converter()
368367
dct = converter.unstructure(GenericClass(42), unstructure_as=GenericClass[int])
369368
assert dct == {"t": 42}

0 commit comments

Comments
 (0)