diff --git a/pandas/io/stata.py b/pandas/io/stata.py index 7f37f0293e417..705f5c82be915 100644 --- a/pandas/io/stata.py +++ b/pandas/io/stata.py @@ -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]))