Fix some broken master-doc pages

This commit is contained in:
Griatch 2021-06-13 22:02:18 +02:00
parent a352abc1c4
commit 95a2b18d43
29 changed files with 236 additions and 502 deletions

View file

@ -51,7 +51,7 @@ class Room(DefaultRoom):
See examples/object.py for a list of
properties and methods available on all Objects.
"""
@property
def x(self):
"""Return the X coordinate or None."""
@ -72,7 +72,7 @@ class Room(DefaultRoom):
"""Return the Y coordinate or None."""
y = self.tags.get(category="coordy")
return int(y) if isinstance(y, str) else None
@y.setter
def y(self, y):
"""Change the Y coordinate."""
@ -87,7 +87,7 @@ class Room(DefaultRoom):
"""Return the Z coordinate or None."""
z = self.tags.get(category="coordz")
return int(z) if isinstance(z, str) else None
@z.setter
def z(self, z):
"""Change the Z coordinate."""
@ -99,8 +99,7 @@ class Room(DefaultRoom):
```
If you aren't familiar with the concept of properties in Python, I encourage you to read a good
tutorial on the subject. [This article on Python properties](https://www.programiz.com/python-
programming/property)
tutorial on the subject. [This article on Python properties](https://www.programiz.com/python-programming/property)
is well-explained and should help you understand the idea.
Let's look at our properties for `x`. First of all is the read property.