Skip to content

TYP: remove ignore from PandasObject.__sizeof__ #40271

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

simonjayhawkins
Copy link
Member

xref #37715

we should probably have a base implementation (or make memory_usage an abstract method). without doing this we have no way of enforcing that the method has a deep parameter.

I am quite happy leaving the ignore in play to highlight this.

@simonjayhawkins simonjayhawkins added the Typing type annotations, mypy/pyright type checking label Mar 6, 2021
@simonjayhawkins simonjayhawkins added this to the 1.3 milestone Mar 6, 2021
@jreback jreback merged commit c2e4a5d into pandas-dev:master Mar 8, 2021
@simonjayhawkins simonjayhawkins deleted the remove-ignore-from-PandasObject.__sizeof__ branch March 8, 2021 15:06
jbrockmendel pushed a commit to jbrockmendel/pandas that referenced this pull request Mar 11, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Typing type annotations, mypy/pyright type checking
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants