-
-
Notifications
You must be signed in to change notification settings - Fork 289
.arguments
property ignores keyword-only args, *args, and **kwargs
#2213
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
Comments
Should the definition be changed as well? It states I tried running the following:
And it seems correct to me 🤔 |
astroid/astroid/nodes/node_classes.py Lines 685 to 688 in fef38f2
The docstring seems to be correct? |
Depends on how you parse the language. "positional and keyword" could describe the argument Essentially, the crux of this is whether we should
@crazybolillo have you happened to sample the places that use this function to be able to offer a view on that? I'd be eager to hear it! |
I think I got confused about the documentation 😭. I was reading the docstring for astroid/astroid/nodes/node_classes.py Lines 554 to 555 in d4f4452
but we are dealing with |
Fixes pylint-dev#2213. Arguments.arguments() has been modified so that it returns all arguments as it should (according to its own doc). A test case was also added to verify this.
Closes pylint-dev#2213. Arguments.arguments() has been modified so that it returns all arguments as it should (according to its own doc). A test case was also added to verify this.
Closes pylint-dev#2213. Arguments.arguments() has been modified so that it returns all arguments as it should (according to its own doc). A test case was also added to verify this.
Closes pylint-dev#2213. Arguments.arguments() has been modified so that it returns all arguments as it should (according to its own doc). A test case was also added to verify this.
Closes pylint-dev#2213. Arguments.arguments() has been modified so that it returns all arguments as it should (according to its own doc). A test case was also added to verify this.
I also misunderstood the documentation or it's wrong and #2240 is the fix. |
Closes pylint-dev#2213. Arguments.arguments() has been modified so that it returns all arguments as it should (according to its own doc). A test case was also added to verify this.
Closes pylint-dev#2213. Arguments.arguments() has been modified so that it returns all arguments as it should (according to its own doc). A test case was also added to verify this.
Closes pylint-dev#2213. Arguments.arguments() has been modified so that it returns all arguments as it should (according to its own doc). A test case was also added to verify this.
Closes pylint-dev#2213. Arguments.arguments() has been modified so that it returns all arguments as it should (according to its own doc). A test case was also added to verify this. Methods which counted on arguments() not containing vararg and kwonlyargs have also been modified so they work with this new change.
Closes pylint-dev#2213. Arguments.arguments() has been modified so that it returns all arguments as it should (according to its own doc). A test case was also added to verify this. Methods which counted on arguments() not containing vararg and kwonlyargs have also been modified so they work with this new change.
Arguments.arguments() has been modified so that it returns all arguments as it should (according to its own doc). A test case was also added to verify this. Methods which counted on arguments() not containing vararg and kwonlyargs have also been modified so they work with this new change. Provide more info on *args and **kwargs: Iif available, these nodes (accessed through arguments()) now contain lineno and col offset information. find_argname now works when requesting vararg or kwargs. Closes #2213.
Related pylint-dev#2213. Requesting the default value for a kwonlyarg with no default would fail with an IndexError, it now correctly raises a NoDefault exception. This issue arised after changes in PR#2240.
Refs pylint-dev#2213. Requesting the default value for a kwonlyarg with no default would fail with an IndexError, it now correctly raises a NoDefault exception. This issue arised after changes in PR#2240.
Refs pylint-dev#2213. Requesting the default value for a kwonlyarg with no default would fail with an IndexError, it now correctly raises a NoDefault exception. This issue arised after changes in PR pylint-dev#2240.
Refs pylint-dev#2213. Requesting the default value for a kwonlyarg with no default would fail with an IndexError, it now correctly raises a NoDefault exception. This issue arised after changes in PR pylint-dev#2240.
Expected to find all the arguments from the function signature.
The wanted data can be found here:
Discussed at pylint-dev/pylint#7577 (comment).
Notice that positional-only args are found for some reason 🤷
The text was updated successfully, but these errors were encountered: