Skip to content

Commit

Permalink
CLN: Improve typing
Browse files Browse the repository at this point in the history
Fix many mypy issues
Use Label
  • Loading branch information
bashtage committed Jan 16, 2020
1 parent 48a9ad9 commit 299dca0
Show file tree
Hide file tree
Showing 2 changed files with 151 additions and 143 deletions.
8 changes: 4 additions & 4 deletions pandas/core/frame.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
labeling information
"""
import collections
import datetime
from collections import abc
import datetime
from io import StringIO
import itertools
import sys
Expand Down Expand Up @@ -1854,14 +1854,14 @@ def _from_arrays(cls, arrays, columns, index, dtype=None) -> "DataFrame":
def to_stata(
self,
path: FilePathOrBuffer,
convert_dates: Optional[Dict[Hashable, str]] = None,
convert_dates: Optional[Dict[Label, str]] = None,
write_index: bool = True,
byteorder: Optional[str] = None,
time_stamp: Optional[datetime.datetime] = None,
data_label: Optional[str] = None,
variable_labels: Optional[Dict[Hashable, str]] = None,
variable_labels: Optional[Dict[Label, str]] = None,
version: Optional[int] = 114,
convert_strl: Optional[Sequence[Hashable]] = None,
convert_strl: Optional[Sequence[Label]] = None,
) -> None:
"""
Export DataFrame object to Stata dta format.
Expand Down
Loading

0 comments on commit 299dca0

Please sign in to comment.