Skip to content

Commit 58ee5ae

Browse files
committed
Fix type resolution call
1 parent 42e2d93 commit 58ee5ae

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/cattrs/converters.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1252,7 +1252,7 @@ def gen_unstructure_attrs_fromdict(
12521252
attribs = fields(origin or cl)
12531253
if attrs_has(cl) and any(isinstance(a.type, str) for a in attribs):
12541254
# PEP 563 annotations - need to be resolved.
1255-
resolve_types(cl)
1255+
resolve_types(origin or cl)
12561256
attrib_overrides = {
12571257
a.name: self.type_overrides[a.type]
12581258
for a in attribs

0 commit comments

Comments
 (0)