From ad843734a0a764279203cba185635790afec0789 Mon Sep 17 00:00:00 2001 From: Matthew Zeitlin <37011898+mzeitlin11@users.noreply.github.com> Date: Mon, 19 Jul 2021 16:23:49 -0400 Subject: [PATCH] Backport PR #42614: 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 4eb42640d9b70..20e035891a625 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]))