Argument missing for parameter "self" when plot with xarray
#8203
-
I have been using xarray for several years and recently began using Pyright. However, I encountered the following error: I've noticed the disscussion here but I can't figure out the reason.
It seems to related to the codes here:
Here is my
Originally posted by @singledoggy in pydata/xarray#9150 |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Pyright is behaving correctly here. Not surprisingly, mypy generates the same error. The problem appears to be in the class DataArrayPlotAccessor:
...
@functools.wraps(dataarray_plot.plot, assigned=("__doc__", "__annotations__"))
def __call__(self, **kwargs) -> Any:
return dataarray_plot.plot(self._da, **kwargs) |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
Pyright is behaving correctly here. Not surprisingly, mypy generates the same error.
The problem appears to be in the
xarray
library here: