Skip to content

CI/TYP: pyright reportSelfClsParameterName #46241

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 3 commits into from
Mar 6, 2022
Merged

CI/TYP: pyright reportSelfClsParameterName #46241

merged 3 commits into from
Mar 6, 2022

Conversation

twoertwein
Copy link
Member

Fixes:

pandas/core/arrays/_mixins.py:185:26 - warning: Instance methods should take a "self" parameter (reportSelfClsParameterName)

I'm not familiar with the function, could also be a classmethod @jbrockmendel

@jbrockmendel
Copy link
Member

should be a classmethod

@jreback jreback added the Typing type annotations, mypy/pyright type checking label Mar 5, 2022
@twoertwein
Copy link
Member Author

Ready and green.

Removes also an unused mypy ignore which caused an error on main.

@jreback jreback merged commit 9b11a62 into pandas-dev:main Mar 6, 2022
@twoertwein twoertwein deleted the cls branch March 9, 2022 02:56
yehoshuadimarsky pushed a commit to yehoshuadimarsky/pandas that referenced this pull request Jul 13, 2022
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.

3 participants