html_url,issue_url,id,node_id,user,created_at,updated_at,author_association,body,reactions,performed_via_github_app,issue https://github.com/pydata/xarray/issues/4152#issuecomment-671652267,https://api.github.com/repos/pydata/xarray/issues/4152,671652267,MDEyOklzc3VlQ29tbWVudDY3MTY1MjI2Nw==,14808389,2020-08-11T00:14:54Z,2020-08-11T00:14:54Z,MEMBER,"the issue is that we use `functools.wraps` to copy `__doc__`, `__name__` and `__qualname__` to `newplotfunc`. How about using ```python # Build on the original docstring dummy.__doc__ = f""{plotfunc.__doc__}\n{commondoc}"" # to shorten the signature @functools.wraps(plotfunc) def dummy(darray, x, y, **kwargs): pass # use the signature of dummy del dummy.__wrapped__ @functools.wraps(dummy) def newplotfunc( ``` instead of https://github.com/pydata/xarray/blob/1791c3b6f9852edca977c68c0bf52ed4406ef7b0/xarray/plot/plot.py#L572-L576","{""total_count"": 1, ""+1"": 1, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,638211949 https://github.com/pydata/xarray/issues/4152#issuecomment-671118697,https://api.github.com/repos/pydata/xarray/issues/4152,671118697,MDEyOklzc3VlQ29tbWVudDY3MTExODY5Nw==,14808389,2020-08-10T00:12:18Z,2020-08-10T00:12:18Z,MEMBER,"unfortunately, `sphinx-autosummary-accessors` can't fix all of this: some of the plotting functions have a signature of `(x, y, z, ax, **kwargs)`. After passing through the autosummary / autodoc, this becomes `(y, z, ax, **kwargs)` (`x` was assumed to be `self` or `darray`). However, this doesn't match the documentation which claims to have `darray`, `x`, `y` and `ax` instead. Maybe we should try to fix that?","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,638211949 https://github.com/pydata/xarray/issues/4152#issuecomment-653817637,https://api.github.com/repos/pydata/xarray/issues/4152,653817637,MDEyOklzc3VlQ29tbWVudDY1MzgxNzYzNw==,14808389,2020-07-04T22:07:52Z,2020-07-04T22:08:15Z,MEMBER,"actually, it seems RTD unpinned the dependency versions (not sure when they did that) so we might even be able to make use of the hack. So: should we try using that package by installing from github, or would it be better to wait until there's a released version available?","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,638211949 https://github.com/pydata/xarray/issues/4152#issuecomment-653598725,https://api.github.com/repos/pydata/xarray/issues/4152,653598725,MDEyOklzc3VlQ29tbWVudDY1MzU5ODcyNQ==,14808389,2020-07-03T15:33:05Z,2020-07-03T16:56:43Z,MEMBER,"I hacked around that issue in the PR so this issue would be fixed by switching to `sphinx-autosummary-accessors`. However, since RTD pins us to `sphinx=1.8.5` (we can't change that when using `conda`) and the way the hack is written right now requires `sphinx>=3.1`, we won't be able to use it.","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,638211949 https://github.com/pydata/xarray/issues/4152#issuecomment-653135292,https://api.github.com/repos/pydata/xarray/issues/4152,653135292,MDEyOklzc3VlQ29tbWVudDY1MzEzNTI5Mg==,14808389,2020-07-02T17:32:31Z,2020-07-02T17:32:31Z,MEMBER,"it seems fixing both the signature and the summary is a bit more involved than I thought and probably either requires changes to `sphinx` or partially rewriting the `Autosummary` class. Since using `sphinx-autosummary-accessors` will probably be the way to go here, let's continue that discussion in keewis/sphinx-autosummary-accessors#6","{""total_count"": 1, ""+1"": 1, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,638211949