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

Fix type hints of pa.Field so Iterable and dict arguments actually contain type information #1901

Merged
merged 1 commit into from
Feb 10, 2025

Conversation

dolfandringa
Copy link
Contributor

This fixes #1899 by specifying more complete type hints for pandera.Field. The fix is not very specific, but aims to at least pass strict type checking with pyright.

Copy link

codecov bot commented Jan 23, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 93.32%. Comparing base (812b2a8) to head (a7fe3c9).
Report is 189 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1901      +/-   ##
==========================================
- Coverage   94.28%   93.32%   -0.96%     
==========================================
  Files          91      121      +30     
  Lines        7013     9303    +2290     
==========================================
+ Hits         6612     8682    +2070     
- Misses        401      621     +220     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

…ntain type information

Signed-off-by: Dolf Andringa <dolfandringa@gmail.com>
@dolfandringa
Copy link
Contributor Author

I fixed the linting issue in python 3.8.

@cosmicBboy
Copy link
Collaborator

Thanks @dolfandringa ! and congrats on your first PR to pandera 🚀

@cosmicBboy cosmicBboy merged commit 70a49d5 into unionai-oss:main Feb 10, 2025
145 of 146 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants