From 049c711da21dbbb1bcd921084c5008c666526367 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Edgar=20Ram=C3=ADrez=20Mondrag=C3=B3n?= <16805946+edgarrmondragon@users.noreply.github.com> Date: Tue, 30 Jul 2024 14:22:05 -0600 Subject: [PATCH] refactor: Replace use of `pendulum` with stdlib (#473) --- tap_postgres/client.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tap_postgres/client.py b/tap_postgres/client.py index 75c88954..b21e77c9 100644 --- a/tap_postgres/client.py +++ b/tap_postgres/client.py @@ -13,7 +13,6 @@ from types import MappingProxyType from typing import TYPE_CHECKING, Any, Iterable, Mapping -import pendulum import psycopg2 import singer_sdk.helpers._typing import sqlalchemy as sa @@ -58,7 +57,7 @@ def patched_conform( """ if isinstance(elem, datetime.date): # not copied, original logic return elem.isoformat() - if isinstance(elem, (datetime.datetime, pendulum.DateTime)): # copied + if isinstance(elem, (datetime.datetime,)): # copied return singer_sdk.helpers._typing.to_json_compatible(elem) if isinstance(elem, datetime.timedelta): # copied epoch = datetime.datetime.fromtimestamp(0, datetime.timezone.utc)