Skip to content

Commit 7c050f1

Browse files
committed
Fix tests on Python 3.8+
1 parent 0f8ba38 commit 7c050f1

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

pendulum/datetime.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -516,7 +516,7 @@ def add(
516516
tz=self.tz,
517517
)
518518

519-
dt = self.__class__(
519+
dt = datetime.datetime(
520520
dt.year,
521521
dt.month,
522522
dt.day,

poetry.lock

Lines changed: 4 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)