-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
CLN: various lgtm.com cleanups #30258
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
Conversation
@@ -78,7 +78,8 @@ def itemsize(self): | |||
|
|||
@classmethod | |||
def construct_array_type(cls): | |||
"""Return the array type associated with this dtype | |||
""" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this docstring not inherited from the base class?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not as far as I'm aware. Should it be?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It looks like inspect.getdoc(object)
https://docs.python.org/3/library/inspect.html?highlight=inspect#inspect.getdoc could get the baseclass docstring.
I'm using VSCode and not showing baseclass docstring when no docstring exists on derived class.
_IntegerDtype().construct_array_type.__doc__
returns None if no docstring exists on derived class but help(_IntegerDtype().construct_array_type)
does show the inherited doctstring.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok this is odd then I agree with @TomAugspurger that these should inherit the baseclass, odd that they are not.
thanks for the cleanups @simonjayhawkins |
No description provided.