Skip to content

Commit 369b4f1

Browse files
committed
Fix linting
1 parent f47aec9 commit 369b4f1

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

pendulum/__init__.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,10 @@ def yesterday(tz="local"): # type: (Union[str, _Timezone]) -> DateTime
251251

252252

253253
def from_format(
254-
string, fmt, tz=UTC, locale=None, # noqa
254+
string,
255+
fmt,
256+
tz=UTC,
257+
locale=None, # noqa
255258
): # type: (str, str, Union[str, _Timezone], Optional[str]) -> DateTime
256259
"""
257260
Creates a DateTime instance from a specific format.

tests/datetime/test_from_format.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,8 @@ def test_from_format_with_timezone():
3939
def test_from_format_with_square_bracket_in_timezone():
4040
with pytest.raises(ValueError, match="^String does not match format"):
4141
pendulum.from_format(
42-
"1975-05-21 22:32:11 Eu[rope/London", "YYYY-MM-DD HH:mm:ss z",
42+
"1975-05-21 22:32:11 Eu[rope/London",
43+
"YYYY-MM-DD HH:mm:ss z",
4344
)
4445

4546

0 commit comments

Comments
 (0)