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(
19621962 # mypy: Name 'statawriter' already defined (possibly by an import)
19631963 from pandas .io .stata import StataWriterUTF8 as statawriter # type:ignore
19641964
1965- kwargs = {}
1965+ kwargs : Dict [ str , Any ] = {}
19661966 if version is None or version >= 117 :
19671967 # strl conversion is only supported >= 117
19681968 kwargs ["convert_strl" ] = convert_strl
19691969 if version is None or version >= 118 :
19701970 # 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
19731972
19741973 # mypy: Too many arguments for "StataWriter"
19751974 writer = statawriter ( # type: ignore
You can’t perform that action at this time.
0 commit comments