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 @@ -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
You can’t perform that action at this time.
0 commit comments