mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-15 02:59:33 +07:00
applying with the following precedence rules: Docstring: doc parameter of property() call, docstring of the actual accessor, docstring of the getter. Definition: actual accessor, getter.
12 lines
173 B
Python
12 lines
173 B
Python
class C:
|
|
def _get(self):
|
|
"""Getter."""
|
|
return 42
|
|
|
|
def _set(self, x):
|
|
pass
|
|
|
|
attr = property(fget=_get, fset=_set)
|
|
|
|
|
|
C().at<the_ref>tr = 42 |