Repository navigation
API: Add a decorator to deprecate positional args - #6905
Merged
Merged
Conversation
rossbar
approved these changes
Sep 5, 2023
rossbar
left a comment
Contributor
There was a problem hiding this comment.
+1 for the sklearn deprecator - that's a really nice dev feature and something that we've talked about in the past wrt. SLEP 9.
You might consider adding the deprecator in a separate PR, but the only reason to do so is on the off-chance that we want to revert the kwarg-only-ness of the filter_ params in the future. I don't think this is very likely, so +1 for having everything lumped together in 1 PR.
Thanks for pushing this forward @MridulS !
dschult
approved these changes
Sep 6, 2023
dschult
left a comment
Member
There was a problem hiding this comment.
Wow -- very nice!
Luv the input parameter revamp that python inspection allows. :}
I think subgraph_view is a good testcase to use it on too.
I approve this PR.
Alex-Markham
pushed a commit
to Alex-Markham/networkx
that referenced
this pull request
Oct 13, 2023
* MAINT: Add a decorator to deprecate positional args * update our codebase with keyword only
dschult
pushed a commit
to BrunoBaldissera/networkx
that referenced
this pull request
Oct 23, 2023
* MAINT: Add a decorator to deprecate positional args * update our codebase with keyword only
cvanelteren
pushed a commit
to cvanelteren/networkx
that referenced
this pull request
Apr 22, 2024
* MAINT: Add a decorator to deprecate positional args * update our codebase with keyword only
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Scikit-learn has a decorator which took care of the deprecation cycle for moving to keyword args from positional args. I have vendored that in as a networkx decorator.
This should resolve #4845.