-
-
Notifications
You must be signed in to change notification settings - Fork 382
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
Any way to preserve signature/docs of an attrs class deriving from Generic? #374
Comments
Uh. What does |
|
yields:
|
Yeah, that’s not great but totally not our problem, right? For posterity, >>> inspect.getfullargspec(B)
FullArgSpec(args=['cls'], varargs='args', varkw='kwargs', defaults=None, kwonlyargs=[], kwonlydefaults=None, annotations={}) |
Closing as Python weirdness. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It's more of a cosmetic thing, but still; wondering - is this Jupyter being stupid, or is there some way to fix it? Basically, attrs init signature gets shadowed by that of the base class which is pretty sad (plus the class docstring).
E.g., normal attrs class:
Derived from
Generic
:In the lattesr case the init signature is actually fine:
The text was updated successfully, but these errors were encountered: