Skip to content

Commit 48bb4d5

Browse files
mzeitlin11feefladder
authored andcommitted
CI/TYP: remove unneeded stata ignore (pandas-dev#42614)
1 parent 70b105b commit 48bb4d5

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)