Skip to content

Commit

Permalink
refactor: usage of typing.Literal as non-string (#73)
Browse files Browse the repository at this point in the history
Signed-off-by: Jan Kowalleck <jan.kowalleck@gmail.com>
  • Loading branch information
jkowalleck authored Feb 11, 2024
1 parent e3e51a4 commit 32fbe2a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions serializable/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -1130,7 +1130,7 @@ def register_property_type_mapping(cls, qual_name: str, mapped_type: type) -> No


@overload
def serializable_enum(cls: 'Literal[None]' = None) -> Callable[[Type[_E]], Type[_E]]:
def serializable_enum(cls: Literal[None] = None) -> Callable[[Type[_E]], Type[_E]]:
...


Expand Down Expand Up @@ -1160,7 +1160,7 @@ def decorate(kls: Type[_E]) -> Type[_E]:

@overload
def serializable_class(
cls: 'Literal[None]' = None, *,
cls: Literal[None] = None, *,
name: Optional[str] = ...,
serialization_types: Optional[Iterable[SerializationType]] = ...,
ignore_during_deserialization: Optional[Iterable[str]] = ...
Expand Down

0 comments on commit 32fbe2a

Please sign in to comment.