Skip to content
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

TYP/REF: define comparison methods non-dynamically #36930

Merged
merged 9 commits into from
Oct 7, 2020

Conversation

jbrockmendel
Copy link
Member

  • closes #xxxx
  • tests added / passed
  • passes black pandas
  • passes git diff upstream/master -u -- "*.py" | flake8 --diff
  • whatsnew entry

xref #31160, cc @simonjayhawkins @WillAyd

This implements OpsMixin which is more mypy-friendly than the status quo, and uses it in Series, Index, and DatetimeLikeArrayMixin. There are a handful more places where it can be used in an upcoming pass.

Will do the same for arithmetic/boolean ops if there is consensus that this is worth pursuing.

@jbrockmendel jbrockmendel added the Mothballed Temporarily-closed PR the author plans to return to label Oct 7, 2020
@jbrockmendel jbrockmendel reopened this Oct 7, 2020
@jbrockmendel jbrockmendel removed the Mothballed Temporarily-closed PR the author plans to return to label Oct 7, 2020
@simonjayhawkins
Copy link
Member

LGTM

@simonjayhawkins simonjayhawkins added Refactor Internal refactoring of code Typing type annotations, mypy/pyright type checking labels Oct 7, 2020
@simonjayhawkins simonjayhawkins added this to the 1.2 milestone Oct 7, 2020
@jreback jreback merged commit 257ad4e into pandas-dev:master Oct 7, 2020
@jreback
Copy link
Contributor

jreback commented Oct 7, 2020

yep lgtm. thanks @jbrockmendel

@jbrockmendel jbrockmendel deleted the typ-31160-index-cmp branch October 7, 2020 15:16
kesmit13 pushed a commit to kesmit13/pandas that referenced this pull request Nov 2, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Refactor Internal refactoring of code Typing type annotations, mypy/pyright type checking
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants