xarray icon indicating copy to clipboard operation
xarray copied to clipboard

[pre-commit.ci] pre-commit autoupdate

Open pre-commit-ci[bot] opened this issue 1 year ago • 2 comments

updates:

pre-commit-ci[bot] avatar Jul 01 '24 17:07 pre-commit-ci[bot]

we might have to turn off E721, or sprinkle noqa: E721 comments around. The issue here is that we're comparing dtypes with types like str using == / !=. Though maybe we can figure out how to do that with dtypes.isdtype instead?

keewis avatar Jul 02 '24 10:07 keewis

There's a few that could be switched to isinstance so let's do that and turn it off?

Example: type(result) == slice

dcherian avatar Jul 02 '24 12:07 dcherian