Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Nov 11, 2024
1 parent 4e4a613 commit 6a823a7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions singer_sdk/helpers/_typing.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@

import copy
import datetime
import uuid
import logging
import typing as t
import uuid
from enum import Enum
from functools import lru_cache

Expand Down Expand Up @@ -43,7 +43,7 @@ def to_json_compatible(val: t.Any) -> t.Any: # noqa: ANN401
if isinstance(val, (datetime.datetime,)):
# Make naive datetimes UTC
return (val.replace(tzinfo=UTC) if val.tzinfo is None else val).isoformat("T")
elif isinstance(val, (uuid.UUID,)):
if isinstance(val, (uuid.UUID,)):
return str(val)

Check warning on line 47 in singer_sdk/helpers/_typing.py

View check run for this annotation

Codecov / codecov/patch

singer_sdk/helpers/_typing.py#L47

Added line #L47 was not covered by tests
return val

Expand Down

0 comments on commit 6a823a7

Please sign in to comment.