Skip to content

Commit

Permalink
Linting / formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
soceanainn committed Nov 7, 2024
1 parent ada25f9 commit 52b2f86
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion kombu/utils/json.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,7 @@ def register_type(
"""
_register_type(t, marker, encoder, decoder, is_default_encoder=False)


def _register_type(
t: type[T],
marker: str | None,
Expand All @@ -149,7 +150,7 @@ def _register_default_types():
# NOTE: datetime should be registered before date,
# because datetime is also instance of date.
_register_type(datetime, "datetime", datetime.isoformat,
datetime.fromisoformat)
datetime.fromisoformat)
_register_type(
date,
"date",
Expand Down

0 comments on commit 52b2f86

Please sign in to comment.