Skip to content

Commit 22fe19c

Browse files
ShaharNavehsimonjayhawkins
authored andcommitted
TYP/CLN: Replaced "Optional[Hashable]" with "Label" from pandas._typing (#31062)
1 parent c040f14 commit 22fe19c

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

pandas/core/generic.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@
3737
FilePathOrBuffer,
3838
FrameOrSeries,
3939
JSONSerializable,
40+
Label,
4041
Level,
4142
Renamer,
4243
)
@@ -3009,10 +3010,10 @@ def to_csv(
30093010
sep: str = ",",
30103011
na_rep: str = "",
30113012
float_format: Optional[str] = None,
3012-
columns: Optional[Sequence[Optional[Hashable]]] = None,
3013+
columns: Optional[Sequence[Label]] = None,
30133014
header: Union[bool_t, List[str]] = True,
30143015
index: bool_t = True,
3015-
index_label: Optional[Union[bool_t, str, Sequence[Optional[Hashable]]]] = None,
3016+
index_label: Optional[Union[bool_t, str, Sequence[Label]]] = None,
30163017
mode: str = "w",
30173018
encoding: Optional[str] = None,
30183019
compression: Optional[Union[str, Mapping[str, str]]] = "infer",

0 commit comments

Comments
 (0)