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: Persist typing information for pipe args and kwargs #56760

Merged
merged 5 commits into from
Jan 15, 2024

Conversation

paw-lu
Copy link
Contributor

@paw-lu paw-lu commented Jan 7, 2024

Porting work done in:

over to this repository.

@paw-lu
Copy link
Contributor Author

paw-lu commented Jan 7, 2024

Still working on this, but sharing as an early draft for feedback and transparency.

pandas/core/generic.py Outdated Show resolved Hide resolved
pandas/_typing.py Outdated Show resolved Hide resolved
@twoertwein twoertwein added the Typing type annotations, mypy/pyright type checking label Jan 7, 2024
@paw-lu paw-lu force-pushed the pipe-typing branch 4 times, most recently from a3127c6 to 142d749 Compare January 8, 2024 00:58
pandas/core/common.py Outdated Show resolved Hide resolved
@paw-lu paw-lu force-pushed the pipe-typing branch 3 times, most recently from a81c4de to 943fc3c Compare January 11, 2024 03:29
@paw-lu paw-lu marked this pull request as ready for review January 11, 2024 15:54
pandas/_typing.py Outdated Show resolved Hide resolved
Copy link
Contributor

@Dr-Irv Dr-Irv left a comment

Choose a reason for hiding this comment

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

I'm fine with this. Will let others do the merge

@twoertwein twoertwein merged commit 116832d into pandas-dev:main Jan 15, 2024
50 checks passed
@twoertwein
Copy link
Member

Thank you @paw-lu!

@paw-lu paw-lu deleted the pipe-typing branch January 15, 2024 18:37
pmhatre1 pushed a commit to pmhatre1/pandas-pmhatre1 that referenced this pull request May 7, 2024
…56760)

* Type generic pipe with function params

* Type common pipe with function params

* Type resample pipe with function params

* Type groupby pipe with function params

* Type style pipe function params and tuple func
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.

ENH: Type pipe with ParamSpec
4 participants