Skip to content

Commit a06d2a0

Browse files
committed
Lint
1 parent 3116972 commit a06d2a0

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
@@ -267,7 +267,6 @@ def _get_filepath_or_buffer(
267267
----------
268268
filepath_or_buffer : a url, filepath (str, py.path.local or pathlib.Path),
269269
or buffer
270-
271270
{compression_options}
272271
273272
.. versionchanged:: 1.4.0 Zstandard support.
@@ -515,7 +514,6 @@ def infer_compression(
515514
----------
516515
filepath_or_buffer : str or file handle
517516
File path or object.
518-
519517
{compression_options}
520518
521519
.. versionchanged:: 1.4.0 Zstandard support.
@@ -629,7 +627,6 @@ def get_handle(
629627
Mode to open path_or_buf with.
630628
encoding : str or None
631629
Encoding to use.
632-
633630
{compression_options}
634631
635632
.. versionchanged:: 1.0.0
@@ -1139,9 +1136,9 @@ def _is_binary_mode(handle: FilePath | BaseBuffer, mode: str) -> bool:
11391136
)
11401137

11411138

1142-
def _get_binary_io_classes() -> tuple[type]:
1139+
def _get_binary_io_classes() -> tuple[type, ...]:
11431140
"""IO classes that that expect bytes"""
1144-
binary_classes: tuple[type] = (BufferedIOBase, RawIOBase)
1141+
binary_classes: tuple[type, ...] = (BufferedIOBase, RawIOBase)
11451142

11461143
# python-zstandard doesn't use any of the builtin base classes; instead we
11471144
# 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
@@ -280,10 +280,9 @@
280280
.. versionchanged:: 1.2
281281
282282
``TextFileReader`` is a context manager.
283-
284283
{decompression_options}
285284
286-
.. versionchanged: 1.4.0 Zstandard support.
285+
.. versionchanged:: 1.4.0 Zstandard support.
287286
288287
thousands : str, optional
289288
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)