Skip to content

Commit

Permalink
Relax Converter type on configure_tagged_union
Browse files Browse the repository at this point in the history
  • Loading branch information
VincentVanlaer committed Nov 21, 2023
1 parent a8a168a commit 435c8e7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cattrs/strategies/_unions.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ def default_tag_generator(typ: Type) -> str:

def configure_tagged_union(
union: Any,
converter: Converter,
converter: BaseConverter,
tag_generator: Callable[[Type], str] = default_tag_generator,
tag_name: str = "_type",
default: Optional[Type] = NOTHING,
Expand Down

0 comments on commit 435c8e7

Please # to comment.