Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

hvplot.util.with_hv_extension hides docstrings #600

Closed
toddrjen opened this issue Apr 27, 2021 · 0 comments · Fixed by #601
Closed

hvplot.util.with_hv_extension hides docstrings #600

toddrjen opened this issue Apr 27, 2021 · 0 comments · Fixed by #601
Milestone

Comments

@toddrjen
Copy link
Contributor

ALL software version info

  • hvplot = 0.7.0

However looking at the source code this issue should still be present in MASTER.

Description of expected behavior and the observed behavior

Functions wrapped with the hvplot.util.with_hv_extension decorator have their docstrings hidden by the wrapper docstring.

functools.wraps can fix this.

Complete, minimal, self-contained example code that reproduces the issue

Example

>>> import hvplot
>>> help(hvplot.scatter_matrix)

Result:

Help on function wrapper in module hvplot.util:

wrapper(*args, **kwargs)

This is the docstring from the wrapper function inside hvplot.util.with_hv_extension.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants