Skip to content

Commit 9de06d0

Browse files
authored
correct .from_format() tz hint to match the wrapped .datetime() hint
1 parent 411d0aa commit 9de06d0

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
@@ -252,7 +252,7 @@ def yesterday(tz="local"): # type: (Union[str, _Timezone]) -> DateTime
252252

253253
def from_format(
254254
string, fmt, tz=UTC, locale=None, # noqa
255-
): # type: (str, str, Union[str, _Timezone], Optional[str]) -> DateTime
255+
): # type: (str, str, Optional[Union[str, float, _Timezone]], Optional[str]) -> DateTime
256256
"""
257257
Creates a DateTime instance from a specific format.
258258
"""

0 commit comments

Comments
 (0)