Skip to content

Commit

Permalink
CI/TYP: remove unneeded stata ignore (pandas-dev#42614)
Browse files Browse the repository at this point in the history
  • Loading branch information
mzeitlin11 authored Jul 19, 2021
1 parent edd5af7 commit fa8ccbf
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions pandas/io/stata.py
Original file line number Diff line number Diff line change
Expand Up @@ -1673,12 +1673,7 @@ def read(
if self.dtyplist[i] is not None:
col = data.columns[i]
dtype = data[col].dtype
# error: Value of type variable "_DTypeScalar" of "dtype" cannot be
# "object"
if (
dtype != np.dtype(object) # type: ignore[type-var]
and dtype != self.dtyplist[i]
):
if dtype != np.dtype(object) and dtype != self.dtyplist[i]:
requires_type_conversion = True
data_formatted.append(
(col, Series(data[col], ix, self.dtyplist[i]))
Expand Down

0 comments on commit fa8ccbf

Please sign in to comment.