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

depr(python): Deprecate passing time_unit=None to Datetime constructor #14708

Merged
merged 2 commits into from
Feb 27, 2024

Conversation

stinodego
Copy link
Member

@stinodego stinodego commented Feb 27, 2024

None is not a valid time unit, so it should not be accepted. The user should either pass nothing to use the default value, or pass a valid time unit.

The constructor for Duration is already correct.

@stinodego stinodego changed the title depr(python): Deprecate passing time_unit=None to Datetime constructor depr(python): Deprecate passing time_unit=None to Datetime constructor Feb 27, 2024
@github-actions github-actions bot added deprecation Add a deprecation warning to outdated functionality python Related to Python Polars labels Feb 27, 2024
@stinodego stinodego marked this pull request as ready for review February 27, 2024 00:30
@stinodego stinodego merged commit 60a3c3e into main Feb 27, 2024
14 of 15 checks passed
@stinodego stinodego deleted the datetime-tu-none-depr branch February 27, 2024 08:13
@c-peters c-peters added the accepted Ready for implementation label Mar 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
accepted Ready for implementation deprecation Add a deprecation warning to outdated functionality python Related to Python Polars
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

3 participants