property-with-parameters / R0206#
Cannot have defined parameters for properties
Used when we detect that a property also has parameters, which are useless, given that properties cannot be called with additional arguments.
class Worm: @property def bore(self, depth): # [property-with-parameters] pass
class Worm: @property def bore(self): """Property accessed with '.bore'.""" pass def bore_with_depth(depth): """Function called with .bore_with_depth(depth).""" pass
Created by the classes checker.