Skip to content

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