From 6a823a7753eee26c8cfd4b47e0f18cba1e8d7025 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 11 Nov 2024 19:42:33 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- singer_sdk/helpers/_typing.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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