-
-
Notifications
You must be signed in to change notification settings - Fork 74
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
param.pprint breaks if HoloViews is imported #785
Comments
It can be reproduced with: import inspect
import param
class A(param.Parameterized): pass
A.__init__.__signature__ = inspect.Signature([inspect.Parameter('test', inspect.Parameter.KEYWORD_ONLY)])
class T(param.Parameterized):
a = param.Number(1)
t = T()
print(t.param.pprint()) This is indeed what HoloViews is doing: But I don't understand yet why updating the docstring of a class ( |
Yep indeed I also just figured this out. So I think there's two workaround?
The real issue to fix has been well defined in #371. |
I heavily favor number two. I think it is "correct" that params raise an error, as there is something "wrong" with what HoloViews does. |
Running the following:
Will give the following traceback:
If I add
__init__
to the class, it works or remove the holoviews import it works again.The text was updated successfully, but these errors were encountered: