Skip to content

Commit fe2eec5

Browse files
committed
correct .from_format() tz hint to match the wrapped .datetime() hint
1 parent c4e518c commit fe2eec5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pendulum/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@ def yesterday(tz: str | Timezone = "local") -> DateTime:
259259
def from_format(
260260
string: str,
261261
fmt: str,
262-
tz: str | Timezone = UTC,
262+
tz: str | float | Timezone | None = UTC,
263263
locale: str | None = None,
264264
) -> DateTime:
265265
"""

0 commit comments

Comments
 (0)