Skip to content

Argument missing for parameter "self" when plot with xarray #8203

Closed Answered by erictraut
singledoggy asked this question in Q&A
Discussion options

You must be logged in to vote

Pyright is behaving correctly here. Not surprisingly, mypy generates the same error.

The problem appears to be in the xarray library here:

class DataArrayPlotAccessor:
    ...
    @functools.wraps(dataarray_plot.plot, assigned=("__doc__", "__annotations__"))
    def __call__(self, **kwargs) -> Any:
        return dataarray_plot.plot(self._da, **kwargs)

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@singledoggy
Comment options

Answer selected by singledoggy
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants