Skip to content

Commit 7d1e145

Browse files
committed
Reformatted with black pandas
1 parent 91f93c0 commit 7d1e145

File tree

4 files changed

+6
-9
lines changed

4 files changed

+6
-9
lines changed

pandas/io/html.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -922,7 +922,7 @@ def _parse(flavor, io, match, attrs, encoding, displayed_only, **kwargs):
922922
return ret
923923

924924

925-
@deprecate_nonkeyword_arguments(version="1.0", allowed_args=['io', 'match'])
925+
@deprecate_nonkeyword_arguments(version="1.0", allowed_args=["io", "match"])
926926
def read_html(
927927
io,
928928
match=".+",
@@ -938,7 +938,7 @@ def read_html(
938938
converters=None,
939939
na_values=None,
940940
keep_default_na=True,
941-
displayed_only=True
941+
displayed_only=True,
942942
):
943943
r"""Read HTML tables into a ``list`` of ``DataFrame`` objects.
944944

pandas/io/json/_json.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -333,7 +333,7 @@ def _write(
333333
return serialized
334334

335335

336-
@deprecate_nonkeyword_arguments(version="1.0", allowed_args=['path_or_buf'])
336+
@deprecate_nonkeyword_arguments(version="1.0", allowed_args=["path_or_buf"])
337337
def read_json(
338338
path_or_buf=None,
339339
orient=None,
@@ -348,7 +348,7 @@ def read_json(
348348
encoding=None,
349349
lines=False,
350350
chunksize=None,
351-
compression="infer"
351+
compression="infer",
352352
):
353353
"""
354354
Convert a JSON string to pandas object.

pandas/tests/util/test_deprecate_nonkeyword_arguments.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
import pandas.util.testing as tm
88

99

10-
@deprecate_nonkeyword_arguments(version="1.0", allowed_args=['a', 'b'])
10+
@deprecate_nonkeyword_arguments(version="1.0", allowed_args=["a", "b"])
1111
def f(a, b=0, c=0, d=0):
1212
"""
1313
Sum of one to four numbers, the two last arguments

pandas/util/_decorators.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -213,10 +213,7 @@ def wrapper(*args, **kwargs):
213213

214214

215215
def deprecate_nonkeyword_arguments(
216-
version: str,
217-
allowed_args,
218-
*,
219-
stacklevel : int = 2,
216+
version: str, allowed_args, *, stacklevel: int = 2
220217
) -> Callable:
221218
"""
222219
Decorator to deprecate a use of non-keyword arguments of a function.

0 commit comments

Comments
 (0)