Skip to content

Commit 299dca0

Browse files
committed
CLN: Improve typing
Fix many mypy issues Use Label
1 parent 48a9ad9 commit 299dca0

File tree

2 files changed

+151
-143
lines changed

2 files changed

+151
-143
lines changed

pandas/core/frame.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99
labeling information
1010
"""
1111
import collections
12-
import datetime
1312
from collections import abc
13+
import datetime
1414
from io import StringIO
1515
import itertools
1616
import sys
@@ -1854,14 +1854,14 @@ def _from_arrays(cls, arrays, columns, index, dtype=None) -> "DataFrame":
18541854
def to_stata(
18551855
self,
18561856
path: FilePathOrBuffer,
1857-
convert_dates: Optional[Dict[Hashable, str]] = None,
1857+
convert_dates: Optional[Dict[Label, str]] = None,
18581858
write_index: bool = True,
18591859
byteorder: Optional[str] = None,
18601860
time_stamp: Optional[datetime.datetime] = None,
18611861
data_label: Optional[str] = None,
1862-
variable_labels: Optional[Dict[Hashable, str]] = None,
1862+
variable_labels: Optional[Dict[Label, str]] = None,
18631863
version: Optional[int] = 114,
1864-
convert_strl: Optional[Sequence[Hashable]] = None,
1864+
convert_strl: Optional[Sequence[Label]] = None,
18651865
) -> None:
18661866
"""
18671867
Export DataFrame object to Stata dta format.

0 commit comments

Comments
 (0)