You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using pylint on a script that uses the AWS CDK. In their source, they use a fully qualified @builtins.classmethod vs @classmethod to mark a class method and I am getting a no-value-for-parameter because pylint is expecting a parameter for the cls param. I am able to recreate it like so:
I am looking at this line of the class checker file where BUILTIN_DECORATORS = {"builtins.property", "builtins.classmethod"} is defined but then never used.
Current behavior
pylint warns of No value for argument 'text' in unbound method call pylint(no-value-for-parameter) when calling bar2 with only one parameter.
pylint also warns of a problem at the definition of bar2: Method should have "self" as first argument pylint(no-self-argument)
Expected behavior
Both methods should be interpreted as valid class methods and usage without passing a parameter for cls should not be interpreted as invalid usage
pylint --version output
2.4.4
The text was updated successfully, but these errors were encountered:
I am using pylint on a script that uses the AWS CDK. In their source, they use a fully qualified
@builtins.classmethod
vs@classmethod
to mark a class method and I am getting ano-value-for-parameter
because pylint is expecting a parameter for thecls
param. I am able to recreate it like so:This runs on python 3.7.3 and the output is:
I am looking at this line of the class checker file where
BUILTIN_DECORATORS = {"builtins.property", "builtins.classmethod"}
is defined but then never used.Current behavior
pylint warns of
No value for argument 'text' in unbound method call pylint(no-value-for-parameter)
when callingbar2
with only one parameter.pylint also warns of a problem at the definition of
bar2
:Method should have "self" as first argument pylint(no-self-argument)
Expected behavior
Both methods should be interpreted as valid class methods and usage without passing a parameter for
cls
should not be interpreted as invalid usagepylint --version output
2.4.4
The text was updated successfully, but these errors were encountered: