Skip to content

Commit fbdb947

Browse files
committed
Add type annotations to unstructure
1 parent 22d8079 commit fbdb947

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/cattr/converters.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ def __init__(
138138
# Unions are instances now, not classes. We use a different registry.
139139
self._union_registry = {}
140140

141-
def unstructure(self, obj):
141+
def unstructure(self, obj: Any) -> Any:
142142
return self._unstructure_func.dispatch(obj.__class__)(obj)
143143

144144
@property

0 commit comments

Comments
 (0)