Skip to content

Commit 85639b5

Browse files
committed
CLN: Use type rather than ignoring
1 parent 4d3b375 commit 85639b5

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

pandas/core/frame.py

+2-3
Original file line numberDiff line numberDiff line change
@@ -1959,14 +1959,13 @@ def to_stata(
19591959
# mypy: Name 'statawriter' already defined (possibly by an import)
19601960
from pandas.io.stata import StataWriterUTF8 as statawriter # type:ignore
19611961

1962-
kwargs = {}
1962+
kwargs: Dict[str, Any] = {}
19631963
if version is None or version >= 117:
19641964
# strl conversion is only supported >= 117
19651965
kwargs["convert_strl"] = convert_strl
19661966
if version is None or version >= 118:
19671967
# Specifying the version is only supported for UTF8 (118 or 119)
1968-
# mypy: Incompatible types in assignment
1969-
kwargs["version"] = version # type: ignore
1968+
kwargs["version"] = version
19701969

19711970
# mypy: Too many arguments for "StataWriter"
19721971
writer = statawriter( # type: ignore

0 commit comments

Comments
 (0)