We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6cffe80 commit ad84373Copy full SHA for ad84373
pandas/io/stata.py
@@ -1673,12 +1673,7 @@ def read(
1673
if self.dtyplist[i] is not None:
1674
col = data.columns[i]
1675
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
- ):
+ if dtype != np.dtype(object) and dtype != self.dtyplist[i]:
1682
requires_type_conversion = True
1683
data_formatted.append(
1684
(col, Series(data[col], ix, self.dtyplist[i]))
0 commit comments