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 9b6ff53 commit b299cc9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/cattrs/strategies/_unions.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

from attrs import NOTHING

from cattrs import BaseConverter, Converter
from cattrs import BaseConverter
from cattrs._compat import get_newtype_base, is_literal, is_subclass, is_union_type

__all__ = [
Expand All @@ -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 b299cc9

Please # to comment.