Skip to content

TYP: Fix core/groupby/generic.py type ignores #46521

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

FactorizeD
Copy link
Contributor

xref #37715

Two things to mention:

  • not a huge fan of casts but couldn't find another way to fix the issues;
  • added Index() in line 277 because columns attribute of a dataframe is supposed to be of Index type.

@FactorizeD FactorizeD marked this pull request as draft March 27, 2022 11:38
@FactorizeD FactorizeD force-pushed the typ-fix-core-groupby-generic-type-errors branch from 849d4ac to 060dc57 Compare March 27, 2022 12:18
@FactorizeD FactorizeD marked this pull request as ready for review March 27, 2022 12:19
@FactorizeD FactorizeD force-pushed the typ-fix-core-groupby-generic-type-errors branch from 060dc57 to 82b9dae Compare March 28, 2022 17:48
@jreback jreback added the Typing type annotations, mypy/pyright type checking label Mar 28, 2022
@jreback jreback requested a review from twoertwein March 28, 2022 23:15
@FactorizeD FactorizeD marked this pull request as draft March 29, 2022 22:44
@FactorizeD
Copy link
Contributor Author

After reviewing all the comments it seems that the only change that can be applied at the moment is cast from line 648. Given that in general it is better to omit such, would you prefer me to still go with this one change, or should I close this PR and come back to it after e.g. stubs are merged?

@simonjayhawkins
Copy link
Member

Thanks @FactorizeD can you get this PR into a mergeable state (and not marked as draft) even if only the one change.

@FactorizeD FactorizeD force-pushed the typ-fix-core-groupby-generic-type-errors branch from 82b9dae to d715868 Compare April 14, 2022 20:19
@FactorizeD FactorizeD marked this pull request as ready for review April 14, 2022 20:20
@FactorizeD FactorizeD force-pushed the typ-fix-core-groupby-generic-type-errors branch from d715868 to cb32477 Compare April 14, 2022 22:14
@jreback jreback added this to the 1.5 milestone May 7, 2022
@jreback
Copy link
Contributor

jreback commented May 7, 2022

can you merge master and fix the precommit

@FactorizeD FactorizeD force-pushed the typ-fix-core-groupby-generic-type-errors branch from cb32477 to 52bece7 Compare May 10, 2022 18:58
@FactorizeD FactorizeD force-pushed the typ-fix-core-groupby-generic-type-errors branch from 52bece7 to 0c06344 Compare May 10, 2022 19:08
Copy link
Member

@simonjayhawkins simonjayhawkins left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @FactorizeD ci failure for TestParquetPyArrow.test_unsupported unrelated (and now fixed on main)

@simonjayhawkins simonjayhawkins merged commit a853022 into pandas-dev:main May 11, 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.

6 participants