Skip to content

Commit fdc1e90

Browse files
julthepsprytnykPierre-Sassoulas
authored
Add documentation examples for property-with-parameters (#7053)
Co-authored-by: Vladyslav Krylasov <[email protected]> Co-authored-by: Pierre Sassoulas <[email protected]>
1 parent 44271ed commit fdc1e90

File tree

3 files changed

+13
-2
lines changed

3 files changed

+13
-2
lines changed
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
class Worm:
2+
@property
3+
def bore(self, depth): # [property-with-parameters]
4+
pass

doc/data/messages/p/property-with-parameters/details.rst

Lines changed: 0 additions & 1 deletion
This file was deleted.
Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,9 @@
1-
# This is a placeholder for correct code for this message.
1+
class Worm:
2+
@property
3+
def bore(self):
4+
"""Property accessed with '.bore'."""
5+
pass
6+
7+
def bore_with_depth(depth):
8+
"""Function called with .bore_with_depth(depth)."""
9+
pass

0 commit comments

Comments
 (0)