Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/cattr/converters.py
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ def register_unstructure_hook_func(
self._unstructure_func.register_func_list([(check_func, func)])

def register_structure_hook(
self, cl: Type[T], func: Callable[[Any, Type[V]], T]
self, cl: Type[T], func: Callable[[Any, Type[T]], T]
):
"""Register a primitive-to-class converter function for a type.

Expand All @@ -188,7 +188,7 @@ def register_structure_hook(
def register_structure_hook_func(
self,
check_func: Callable[[Type[T]], bool],
func: Callable[[Any, Type[V]], T],
func: Callable[[Any, Type[T]], T],
):
"""Register a class-to-primitive converter function for a class, using
a function to check if it's a match.
Expand Down