We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ba86e19 commit da12db8Copy full SHA for da12db8
pandas/io/formats/csvs.py
@@ -9,7 +9,6 @@
9
from typing import (
10
TYPE_CHECKING,
11
Any,
12
- AnyStr,
13
Hashable,
14
Iterator,
15
Sequence,
@@ -49,7 +48,7 @@ class CSVFormatter:
49
48
def __init__(
50
self,
51
formatter: DataFrameFormatter,
52
- path_or_buf: FilePathOrBuffer[AnyStr] = "",
+ path_or_buf: FilePathOrBuffer[str] | FilePathOrBuffer[bytes] = "",
53
sep: str = ",",
54
cols: Sequence[Hashable] | None = None,
55
index_label: IndexLabel | None = None,
0 commit comments