Skip to content

Commit 87eefe6

Browse files
authored
fix: wrong return type (#569)
1 parent 5fd0f5b commit 87eefe6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/cattrs/converters.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1214,7 +1214,7 @@ def unstructure_optional(val, _handler=handler):
12141214

12151215
return unstructure_optional
12161216

1217-
def gen_structure_typeddict(self, cl: Any) -> Callable[[dict], dict]:
1217+
def gen_structure_typeddict(self, cl: Any) -> Callable[[dict, Any], dict]:
12181218
"""Generate a TypedDict structure function.
12191219
12201220
Also apply converter-scored modifications.

0 commit comments

Comments
 (0)