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(python): Fix typing for SchemaDefinition #19647

Merged

Conversation

rodrigogiraoserrao
Copy link
Collaborator

According to the docs you can map a column name to None to let Polars infer the data type of the given column. If you use None, that's what happens, but typing complains because it's not expecting the value None, only an explicit data type.

According to the docs you can map a column name to 'None' to let Polars infer the data type of the given column. If you use 'None', that's what happens, but typing complains because it's not expecting the value 'None', only a valid data type.
@github-actions github-actions bot added fix Bug fix python Related to Python Polars labels Nov 5, 2024
Copy link

codecov bot commented Nov 5, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 79.92%. Comparing base (047e578) to head (dda987f).
Report is 37 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main   #19647   +/-   ##
=======================================
  Coverage   79.92%   79.92%           
=======================================
  Files        1536     1536           
  Lines      211700   211700           
  Branches     2445     2445           
=======================================
+ Hits       169199   169210   +11     
+ Misses      41946    41935   -11     
  Partials      555      555           

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

@rodrigogiraoserrao rodrigogiraoserrao marked this pull request as ready for review November 5, 2024 15:04
@ritchie46 ritchie46 merged commit 12ba207 into pola-rs:main Nov 6, 2024
14 checks passed
tylerriccio33 pushed a commit to tylerriccio33/polars that referenced this pull request Nov 8, 2024
@rodrigogiraoserrao rodrigogiraoserrao self-assigned this Nov 8, 2024
@c-peters c-peters added the accepted Ready for implementation label Nov 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
accepted Ready for implementation fix Bug fix python Related to Python Polars
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

3 participants