ruff/crates/ruff_linter/resources/test/fixtures/pydocstyle/setter.py
2023-09-20 08:38:27 +02:00

17 lines
301 B
Python

class PropertyWithSetter:
@property
def foo(self) -> str:
"""Docstring for foo."""
return "foo"
@foo.setter
def foo(self, value: str) -> None:
pass
@foo.deleter
def foo(self):
pass
@foo
def foo(self, value: str) -> None:
pass