Closed stefan6419846 closed 1 year ago
get_value()
isn't a method, it's a function. Methods exist in classes.
Okay, than this seems to be a vocabulary issue/different terminology than I am used to - I have never really considered making a difference about the term "method" and "function".
I find the current wording confusing when just reading the error description of B109 for evaluation.
Example:
Given
the above example should report a violation, as
get_value()
is a method. Judging from the code and #250, standalone methods do not fall into the scope of B019, thus the current description is misleading.