From 55972170b61e923d56824b070e8a5cb83cd30047 Mon Sep 17 00:00:00 2001 From: Matthew Zeitlin Date: Mon, 19 Jul 2021 15:16:01 -0400 Subject: [PATCH] CI/TYP: remove unneeded stata ignore --- pandas/io/stata.py | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) 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]))