Skip to content

Commit

Permalink
Add type annotations to unstructure
Browse files Browse the repository at this point in the history
  • Loading branch information
Tinche committed Jan 20, 2021
1 parent 22d8079 commit fbdb947
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cattr/converters.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ def __init__(
# Unions are instances now, not classes. We use a different registry.
self._union_registry = {}

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

@property
Expand Down

0 comments on commit fbdb947

Please sign in to comment.