Skip to content

Commit 116f62f

Browse files
bug: fixes flake8==6.1.0 bug, unpins flake8==6.0.0 (#211)
* bug: fixes flake8==6.1.0 bug * fix errors * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
1 parent 668988f commit 116f62f

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

db_dtypes/core.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,10 +90,12 @@ def astype(self, dtype, copy=True):
9090
def _cmp_method(self, other, op):
9191
"""Compare array values, for use in OpsMixin."""
9292

93-
if is_scalar(other) and (pandas.isna(other) or type(other) == self.dtype.type):
93+
if is_scalar(other) and (
94+
pandas.isna(other) or isinstance(other, self.dtype.type)
95+
):
9496
other = type(self)([other])
9597

96-
if type(other) != type(self):
98+
if type(other) is not type(self):
9799
return NotImplemented
98100

99101
oshape = getattr(other, "shape", None)

0 commit comments

Comments
 (0)