Skip to content

Commit

Permalink
bug: fixes flake8==6.1.0 bug, unpins flake8==6.0.0 (#211)
Browse files Browse the repository at this point in the history
* 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>
  • Loading branch information
Linchin and gcf-owl-bot[bot] authored Sep 21, 2023
1 parent 668988f commit 116f62f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions db_dtypes/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,10 +90,12 @@ def astype(self, dtype, copy=True):
def _cmp_method(self, other, op):
"""Compare array values, for use in OpsMixin."""

if is_scalar(other) and (pandas.isna(other) or type(other) == self.dtype.type):
if is_scalar(other) and (
pandas.isna(other) or isinstance(other, self.dtype.type)
):
other = type(self)([other])

if type(other) != type(self):
if type(other) is not type(self):
return NotImplemented

oshape = getattr(other, "shape", None)
Expand Down

0 comments on commit 116f62f

Please sign in to comment.