File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -1962,14 +1962,13 @@ def to_stata(
1962
1962
# mypy: Name 'statawriter' already defined (possibly by an import)
1963
1963
from pandas .io .stata import StataWriterUTF8 as statawriter # type:ignore
1964
1964
1965
- kwargs = {}
1965
+ kwargs : Dict [ str , Any ] = {}
1966
1966
if version is None or version >= 117 :
1967
1967
# strl conversion is only supported >= 117
1968
1968
kwargs ["convert_strl" ] = convert_strl
1969
1969
if version is None or version >= 118 :
1970
1970
# Specifying the version is only supported for UTF8 (118 or 119)
1971
- # mypy: Incompatible types in assignment
1972
- kwargs ["version" ] = version # type: ignore
1971
+ kwargs ["version" ] = version
1973
1972
1974
1973
# mypy: Too many arguments for "StataWriter"
1975
1974
writer = statawriter ( # type: ignore
You can’t perform that action at this time.
0 commit comments