Skip to content

Commit 91f93c0

Browse files
committed
Fix flake8 warnings.
1 parent 1dbd296 commit 91f93c0

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

pandas/tests/util/test_deprecate_nonkeyword_arguments.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,16 +21,16 @@ def test_two_arguments(x):
2121
Check whether no future warning is produced if two
2222
positional arguments given.
2323
"""
24-
assert f(1, 5) = 6
24+
assert f(1, 5) == 6
2525

2626

27-
def test_two_arguments(x):
27+
def test_two_and_two_arguments(x):
2828
"""
2929
Check whether no future warning is produced if two
3030
positional arguments and two keyword arguments are
3131
given.
3232
"""
33-
assert f(1, 3, c=3, d=5) = 12
33+
assert f(1, 3, c=3, d=5) == 12
3434

3535

3636
def test_four_arguments(x):
@@ -39,4 +39,4 @@ def test_four_arguments(x):
3939
positional arguments given.
4040
"""
4141
with tm.assert_produces_warning(FutureWarning):
42-
assert f(1, 2, 3, 4) = 10
42+
assert f(1, 2, 3, 4) == 10

pandas/util/_decorators.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -214,10 +214,10 @@ def wrapper(*args, **kwargs):
214214

215215
def deprecate_nonkeyword_arguments(
216216
version: str,
217-
allowed_args:,
217+
allowed_args,
218218
*,
219-
stacklevel : int = 2
220-
) -> Callable
219+
stacklevel : int = 2,
220+
) -> Callable:
221221
"""
222222
Decorator to deprecate a use of non-keyword arguments of a function.
223223

0 commit comments

Comments
 (0)