Skip to content

Commit d816772

Browse files
committed
Fix PEP8
1 parent e54aa5c commit d816772

File tree

3 files changed

+9
-3
lines changed

3 files changed

+9
-3
lines changed

pandas/io/excel/_base.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -497,7 +497,9 @@ def read_excel(
497497

498498

499499
class BaseExcelReader(metaclass=abc.ABCMeta):
500-
def __init__(self, filepath_or_buffer, storage_options: StorageOptions = None) -> None:
500+
def __init__(
501+
self, filepath_or_buffer, storage_options: StorageOptions = None
502+
) -> None:
501503
# First argument can also be bytes, so create a buffer
502504
if isinstance(filepath_or_buffer, bytes):
503505
filepath_or_buffer = BytesIO(filepath_or_buffer)

pandas/io/excel/_xlrd.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,9 @@
1313

1414
class XlrdReader(BaseExcelReader):
1515
@doc(storage_options=_shared_docs["storage_options"])
16-
def __init__(self, filepath_or_buffer, storage_options: StorageOptions = None) -> None:
16+
def __init__(
17+
self, filepath_or_buffer, storage_options: StorageOptions = None
18+
) -> None:
1719
"""
1820
Reader using xlrd engine.
1921

pandas/io/formats/format.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2023,7 +2023,9 @@ class EngFormatter:
20232023
24: "Y",
20242024
}
20252025

2026-
def __init__(self, accuracy: int | None = None, use_eng_prefix: bool = False) -> None:
2026+
def __init__(
2027+
self, accuracy: int | None = None, use_eng_prefix: bool = False
2028+
) -> None:
20272029
self.accuracy = accuracy
20282030
self.use_eng_prefix = use_eng_prefix
20292031

0 commit comments

Comments
 (0)