-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Closed as not planned
Labels
bugSomething isn't workingSomething isn't workingtype-inferenceRequires more advanced type inference.Requires more advanced type inference.
Description
Minimal code snippet to reproduce the bug:
import numpy as np
import xarray as xr
array = xr.DataArray([1, np.nan, 3], dims="x")
array.isnull()The command:
$ ruff check test.py --select=PD --show-source --isolated
test.py:5:1: PD003 `.isna` is preferred to `.isnull`; functionality is equivalent
|
4 | array = xr.DataArray([1, np.nan, 3], dims="x")
5 | array.isnull()
| ^^^^^^^^^^^^ PD003
|
Found 1 error.
ruff version:
$ ruff --version
ruff 0.1.6
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingtype-inferenceRequires more advanced type inference.Requires more advanced type inference.