Skip to content

Commit

Permalink
refactor: Replace use of pendulum with stdlib (#473)
Browse files Browse the repository at this point in the history
  • Loading branch information
edgarrmondragon authored Jul 30, 2024
1 parent 66c4206 commit 049c711
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions tap_postgres/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 049c711

Please sign in to comment.