Skip to content

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

Merged
merged 1 commit into from
Dec 15, 2019
Merged

Conversation

simonjayhawkins
Copy link
Member

No description provided.

@WillAyd WillAyd added this to the 1.0 milestone Dec 13, 2019
@@ -78,7 +78,8 @@ def itemsize(self):

@classmethod
def construct_array_type(cls):
"""Return the array type associated with this dtype
"""
Copy link
Contributor

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?

Copy link
Member Author

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?

Copy link
Member Author

@simonjayhawkins simonjayhawkins Dec 13, 2019

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.

Copy link
Contributor

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.

@jreback jreback merged commit 8c6a994 into pandas-dev:master Dec 15, 2019
@jreback
Copy link
Contributor

jreback commented Dec 15, 2019

thanks for the cleanups @simonjayhawkins

@simonjayhawkins simonjayhawkins deleted the lgtm branch December 16, 2019 00:33
proost pushed a commit to proost/pandas that referenced this pull request Dec 19, 2019
proost pushed a commit to proost/pandas that referenced this pull request Dec 19, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants