---
source: crates/ruff_linter/src/rules/pylint/mod.rs
---
PLR0206 Cannot have defined parameters for properties
 --> property_with_parameters.py:7:9
  |
5 | class Cls:
6 |     @property
7 |     def attribute(self, param, param1):  # [property-with-parameters]
  |         ^^^^^^^^^
8 |         return param + param1
  |

PLR0206 Cannot have defined parameters for properties
  --> property_with_parameters.py:11:9
   |
10 |     @property
11 |     def attribute_keyword_only(self, *, param, param1):  # [property-with-parameters]
   |         ^^^^^^^^^^^^^^^^^^^^^^
12 |         return param + param1
   |

PLR0206 Cannot have defined parameters for properties
  --> property_with_parameters.py:15:9
   |
14 |     @property
15 |     def attribute_positional_only(self, param, param1, /):  # [property-with-parameters]
   |         ^^^^^^^^^^^^^^^^^^^^^^^^^
16 |         return param + param1
   |

PLR0206 Cannot have defined parameters for properties
  --> property_with_parameters.py:35:9
   |
33 | class VariadicParameters:
34 |     @property
35 |     def attribute_var_args(self, *args):  # [property-with-parameters]
   |         ^^^^^^^^^^^^^^^^^^
36 |         return sum(args)
   |

PLR0206 Cannot have defined parameters for properties
  --> property_with_parameters.py:39:9
   |
38 |     @property
39 |     def attribute_var_kwargs(self, **kwargs):  #[property-with-parameters]
   |         ^^^^^^^^^^^^^^^^^^^^
40 |         return {key: value * 2 for key, value in kwargs.items()}
   |

PLR0206 Cannot have defined parameters for properties
  --> property_with_parameters.py:48:9
   |
46 | class Cached:
47 |     @cached_property
48 |     def cached_prop(self, value):  # [property-with-parameters]
   |         ^^^^^^^^^^^
49 |         ...
   |

PLR0206 Cannot have defined parameters for properties
  --> property_with_parameters.py:59:9
   |
57 | class Baz:
58 |     @abc.abstractproperty
59 |     def prop2(self, param) -> None:  # [property-with-parameters]
   |         ^^^^^
60 |         return None
   |

PLR0206 Cannot have defined parameters for properties
  --> property_with_parameters.py:63:9
   |
62 |     @types.DynamicClassAttribute
63 |     def prop3(self, param) -> None:  # [property-with-parameters]
   |         ^^^^^
64 |         return None
   |

PLR0206 Cannot have defined parameters for properties
  --> property_with_parameters.py:67:9
   |
66 |     @enum.property
67 |     def prop4(self, param) -> None:  # [property-with-parameters]
   |         ^^^^^
68 |         return None
   |
