Skip to content

Commit 92ed77e

Browse files
committed
Lint
1 parent 1b2f4e4 commit 92ed77e

File tree

9 files changed

+9
-25
lines changed

9 files changed

+9
-25
lines changed

pandas/core/frame.py

+2-4
Original file line numberDiff line numberDiff line change
@@ -2568,12 +2568,11 @@ def to_stata(
25682568
format. Only available if version is 117. Storing strings in the
25692569
StrL format can produce smaller dta files if strings have more than
25702570
8 characters and values are repeated.
2571-
25722571
{compression_options}
25732572
25742573
.. versionadded:: 1.1.0
25752574
2576-
.. versionchanged: 1.4.0 Zstandard support.
2575+
.. versionchanged:: 1.4.0 Zstandard support.
25772576
25782577
{storage_options}
25792578
@@ -3021,10 +3020,9 @@ def to_xml(
30213020
layout of elements and attributes from original output. This
30223021
argument requires ``lxml`` to be installed. Only XSLT 1.0
30233022
scripts and not later versions is currently supported.
3024-
30253023
{compression_options}
30263024
3027-
.. versionchanged: 1.4.0 Zstandard support.
3025+
.. versionchanged:: 1.4.0 Zstandard support.
30283026
30293027
{storage_options}
30303028

pandas/core/generic.py

-1
Original file line numberDiff line numberDiff line change
@@ -2408,7 +2408,6 @@ def to_json(
24082408
If 'orient' is 'records' write out line-delimited json format. Will
24092409
throw ValueError if incorrect 'orient' since others are not
24102410
list-like.
2411-
24122411
{compression_options}
24132412
24142413
.. versionchanged:: 1.4.0 Zstandard support.

pandas/io/common.py

+2-5
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,6 @@ def _get_filepath_or_buffer(
269269
----------
270270
filepath_or_buffer : a url, filepath (str, py.path.local or pathlib.Path),
271271
or buffer
272-
273272
{compression_options}
274273
275274
.. versionchanged:: 1.4.0 Zstandard support.
@@ -517,7 +516,6 @@ def infer_compression(
517516
----------
518517
filepath_or_buffer : str or file handle
519518
File path or object.
520-
521519
{compression_options}
522520
523521
.. versionchanged:: 1.4.0 Zstandard support.
@@ -631,7 +629,6 @@ def get_handle(
631629
Mode to open path_or_buf with.
632630
encoding : str or None
633631
Encoding to use.
634-
635632
{compression_options}
636633
637634
.. versionchanged:: 1.0.0
@@ -1121,9 +1118,9 @@ def _is_binary_mode(handle: FilePath | BaseBuffer, mode: str) -> bool:
11211118
)
11221119

11231120

1124-
def _get_binary_io_classes() -> tuple[type]:
1121+
def _get_binary_io_classes() -> tuple[type, ...]:
11251122
"""IO classes that that expect bytes"""
1126-
binary_classes: tuple[type] = (BufferedIOBase, RawIOBase)
1123+
binary_classes: tuple[type, ...] = (BufferedIOBase, RawIOBase)
11271124

11281125
# python-zstandard doesn't use any of the builtin base classes; instead we
11291126
# have to use the `zstd.ZstdDecompressionReader` class for isinstance checks.

pandas/io/formats/xml.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -76,10 +76,9 @@ class BaseXMLFormatter:
7676
7777
stylesheet : str or file-like
7878
A URL, file, file-like object, or a raw string containing XSLT.
79-
8079
{compression_options}
8180
82-
.. versionchanged: 1.4.0 Zstandard support.
81+
.. versionchanged:: 1.4.0 Zstandard support.
8382
8483
storage_options : dict, optional
8584
Extra options that make sense for a particular storage connection,

pandas/io/json/_json.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -477,10 +477,9 @@ def read_json(
477477
.. versionchanged:: 1.2
478478
479479
``JsonReader`` is a context manager.
480-
481480
{decompression_options}
482481
483-
.. versionchanged: 1.4.0 Zstandard support.
482+
.. versionchanged:: 1.4.0 Zstandard support.
484483
485484
nrows : int, optional
486485
The number of lines from the line-delimited jsonfile that has to be read.

pandas/io/parsers/readers.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -279,10 +279,9 @@
279279
.. versionchanged:: 1.2
280280
281281
``TextFileReader`` is a context manager.
282-
283282
{decompression_options}
284283
285-
.. versionchanged: 1.4.0 Zstandard support.
284+
.. versionchanged:: 1.4.0 Zstandard support.
286285
287286
thousands : str, optional
288287
Thousands separator.

pandas/io/pickle.py

-2
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@ def to_pickle(
4545
4646
.. versionchanged:: 1.0.0
4747
Accept URL. URL has to be of S3 or GCS.
48-
4948
{compression_options}
5049
5150
.. versionchanged:: 1.4.0 Zstandard support.
@@ -140,7 +139,6 @@ def read_pickle(
140139
141140
.. versionchanged:: 1.0.0
142141
Accept URL. URL is not limited to S3 and GCS.
143-
144142
{decompression_options}
145143
146144
.. versionchanged:: 1.4.0 Zstandard support.

pandas/io/stata.py

-3
Original file line numberDiff line numberDiff line change
@@ -2194,7 +2194,6 @@ class StataWriter(StataParser):
21942194
variable_labels : dict
21952195
Dictionary containing columns as keys and variable labels as values.
21962196
Each label must be 80 characters or smaller.
2197-
21982197
{compression_options}
21992198
22002199
.. versionadded:: 1.1.0
@@ -3122,7 +3121,6 @@ class StataWriter117(StataWriter):
31223121
Smaller columns can be converted by including the column name. Using
31233122
StrLs can reduce output file size when strings are longer than 8
31243123
characters, and either frequently repeated or sparse.
3125-
31263124
{compression_options}
31273125
31283126
.. versionadded:: 1.1.0
@@ -3517,7 +3515,6 @@ class StataWriterUTF8(StataWriter117):
35173515
The dta version to use. By default, uses the size of data to determine
35183516
the version. 118 is used if data.shape[1] <= 32767, and 119 is used
35193517
for storing larger DataFrames.
3520-
35213518
{compression_options}
35223519
35233520
.. versionadded:: 1.1.0

pandas/io/xml.py

+2-4
Original file line numberDiff line numberDiff line change
@@ -72,10 +72,9 @@ class _XMLFrameParser:
7272
stylesheet : str or file-like
7373
URL, file, file-like object, or a raw string containing XSLT,
7474
`etree` does not support XSLT but retained for consistency.
75-
7675
{decompression_options}
7776
78-
.. versionchanged: 1.4.0 Zstandard support.
77+
.. versionchanged:: 1.4.0 Zstandard support.
7978
8079
storage_options : dict, optional
8180
Extra options that make sense for a particular storage connection,
@@ -809,10 +808,9 @@ def read_xml(
809808
reference nodes of transformed XML document generated after XSLT
810809
transformation and not the original XML document. Only XSLT 1.0
811810
scripts and not later versions is currently supported.
812-
813811
{decompression_options}
814812
815-
.. versionchanged: 1.4.0 Zstandard support.
813+
.. versionchanged:: 1.4.0 Zstandard support.
816814
817815
{storage_options}
818816

0 commit comments

Comments
 (0)