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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(python): Deprecate more non-keyword arguments #7030

Merged
merged 7 commits into from Feb 21, 2023

Conversation

stinodego
Copy link
Member

@stinodego stinodego commented Feb 19, 2023

Partially addresses #6993

I did everything except Series/Expr, which are a bit more involved due to the dispatch decorator.

In fact, could we just not deprecate these and just break them in the next breaking release? That would save a lot of hassle. Or I could add an unsilence-able DeprecationWarning on the Expr side for the affected methods, but that would be a little annoying for the user 馃槙

@github-actions github-actions bot added enhancement New feature or an improvement of an existing feature python Related to Python Polars labels Feb 19, 2023
@stinodego stinodego marked this pull request as draft February 19, 2023 20:00
@stinodego stinodego force-pushed the more-nonkeyword-depr branch 2 times, most recently from 03808ea to 70e7494 Compare February 19, 2023 20:10
@stinodego stinodego marked this pull request as ready for review February 19, 2023 20:19
@stinodego stinodego changed the title feat(python): Deprecating more non-keyword arguments chore(python): Deprecating more non-keyword arguments Feb 19, 2023
@stinodego stinodego removed the enhancement New feature or an improvement of an existing feature label Feb 19, 2023
@github-actions github-actions bot added the chore Maintenance work that does not impact the user label Feb 19, 2023
@ghuls
Copy link
Collaborator

ghuls commented Feb 20, 2023

@stinodego read_csv and other read_* and scan_ functions should be keyword only too (except the first argument).

@stinodego
Copy link
Member Author

@stinodego read_csv and other read_* and scan_ functions should be keyword only too (except the first argument).

That's in the PR; not sure what you're missing?

@ghuls
Copy link
Collaborator

ghuls commented Feb 20, 2023

@stinodego read_csv and other read_* and scan_ functions should be keyword only too (except the first argument).

That's in the PR; not sure what you're missing?

Sorry, missed it.

@stinodego
Copy link
Member Author

I'll go ahead and merge this as the strategy implemented here has been discussed previously.

@stinodego stinodego merged commit 03f364a into pola-rs:master Feb 21, 2023
@stinodego stinodego changed the title chore(python): Deprecating more non-keyword arguments chore(python): Deprecate more non-keyword arguments Feb 21, 2023
josemasar pushed a commit to josemasar/polars that referenced this pull request Feb 21, 2023
@stinodego stinodego deleted the more-nonkeyword-depr branch February 22, 2023 18:33
josemasar pushed a commit to josemasar/polars that referenced this pull request Feb 22, 2023
josemasar pushed a commit to josemasar/polars that referenced this pull request Feb 22, 2023
josemasar pushed a commit to josemasar/polars that referenced this pull request Feb 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
chore Maintenance work that does not impact the user python Related to Python Polars
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants