Skip to content

Commit

Permalink
Adjust
Browse files Browse the repository at this point in the history
  • Loading branch information
epenet committed Sep 5, 2024
1 parent 9c7add0 commit efc6475
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/sfrbox_api/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@
from pydantic.dataclasses import dataclass # type: ignore[no-redef]


def _empty_to_none(v: Union[int, str, None]) -> Optional[Union[int, str, None]]:
def _empty_to_none(
v: Union[float, int, str, None]
) -> Optional[Union[float, int, str, None]]:
return None if v == "" else v


Expand Down

0 comments on commit efc6475

Please sign in to comment.