Skip to content

Commit 0f47478

Browse files
committed
catch up
1 parent fe2eec5 commit 0f47478

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

pendulum/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ def instance(
228228
)
229229

230230

231-
def now(tz: str | Timezone | None = None) -> DateTime:
231+
def now(tz: str | float | Timezone | None = None) -> DateTime:
232232
"""
233233
Get a DateTime instance for the current date and time.
234234
"""

pendulum/datetime.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,12 +128,12 @@ def now(cls, tz: datetime.tzinfo | None = None) -> Self:
128128

129129
@overload
130130
@classmethod
131-
def now(cls, tz: str | Timezone | FixedTimezone | None = None) -> Self:
131+
def now(cls, tz: str | float | Timezone | FixedTimezone | None = None) -> Self:
132132
...
133133

134134
@classmethod
135135
def now(
136-
cls, tz: str | Timezone | FixedTimezone | datetime.tzinfo | None = None
136+
cls, tz: str | float | Timezone | FixedTimezone | datetime.tzinfo | None = None
137137
) -> Self:
138138
"""
139139
Get a DateTime instance for the current date and time.

0 commit comments

Comments
 (0)