Skip to content

Commit cf18623

Browse files
authored
Merge pull request #227 from pandas-dev/master
CI/TYP: remove unneeded stata ignore (pandas-dev#42614)
2 parents 7872310 + fa8ccbf commit cf18623

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

pandas/io/stata.py

+1-6
Original file line numberDiff line numberDiff line change
@@ -1673,12 +1673,7 @@ def read(
16731673
if self.dtyplist[i] is not None:
16741674
col = data.columns[i]
16751675
dtype = data[col].dtype
1676-
# error: Value of type variable "_DTypeScalar" of "dtype" cannot be
1677-
# "object"
1678-
if (
1679-
dtype != np.dtype(object) # type: ignore[type-var]
1680-
and dtype != self.dtyplist[i]
1681-
):
1676+
if dtype != np.dtype(object) and dtype != self.dtyplist[i]:
16821677
requires_type_conversion = True
16831678
data_formatted.append(
16841679
(col, Series(data[col], ix, self.dtyplist[i]))

0 commit comments

Comments
 (0)