diff --git a/singer_sdk/helpers/_typing.py b/singer_sdk/helpers/_typing.py index 6d6771944..d3b629c11 100644 --- a/singer_sdk/helpers/_typing.py +++ b/singer_sdk/helpers/_typing.py @@ -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 @@ -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) return val