Properly rephrase

Exact aliases now say so.
This commit is contained in:
Alexander Hess 2026-12-04 11:36:32 +01:00
commit fb0ac53e02
Signed by: alexander
GPG key ID: B46EDB4DFC26805D
5 changed files with 8 additions and 9 deletions

View file

@ -150,8 +150,7 @@ class Address(meta.Base):
The returned `Location` object relates to `.city.southwest`. The returned `Location` object relates to `.city.southwest`.
See also the `.x` and `.y` properties that are shortcuts for `.x` and `.y` are aliases of `.location.x` and `.location.y`.
`.location.x` and `.location.y`.
Cached because the underlying columns never change. Cached because the underlying columns never change.
""" """
@ -165,7 +164,7 @@ class Address(meta.Base):
On the implied x-y plane, the `.city`'s southwest corner is the origin. On the implied x-y plane, the `.city`'s southwest corner is the origin.
Shortcut for `.location.x`. Alias of `.location.x`.
""" """
return self.location.x return self.location.x
@ -175,7 +174,7 @@ class Address(meta.Base):
On the implied x-y plane, the `.city`'s southwest corner is the origin. On the implied x-y plane, the `.city`'s southwest corner is the origin.
Shortcut for `.location.y`. Alias of `.location.y`.
""" """
return self.location.y return self.location.y
@ -192,7 +191,7 @@ class Address(meta.Base):
@property # pragma: no cover @property # pragma: no cover
def map(self) -> folium.Map: def map(self) -> folium.Map:
"""Shortcut to the `.city.map` object.""" """Alias of `.city.map`."""
return self.city.map return self.city.map
def draw(self, **kwargs: t.Any) -> folium.Map: # pragma: no cover def draw(self, **kwargs: t.Any) -> folium.Map: # pragma: no cover

View file

@ -45,7 +45,7 @@ class Customer(meta.Base):
@property # pragma: no cover @property # pragma: no cover
def map(self) -> folium.Map: def map(self) -> folium.Map:
"""Shortcut to the `...city.map` object.""" """Alias of `City.map` for the city where the customer is."""
return self.orders[0].pickup_address.city.map return self.orders[0].pickup_address.city.map
def draw( # noqa:C901,PLR0912 def draw( # noqa:C901,PLR0912

View file

@ -140,7 +140,7 @@ class Grid(meta.Base):
@property # pragma: no cover @property # pragma: no cover
def map(self) -> folium.Map: def map(self) -> folium.Map:
"""Shortcut to the `.city.map` object.""" """Alias of `.city.map`."""
return self.city.map return self.city.map
def draw(self, **kwargs: t.Any) -> folium.Map: # pragma: no cover def draw(self, **kwargs: t.Any) -> folium.Map: # pragma: no cover

View file

@ -164,7 +164,7 @@ class Pixel(meta.Base):
@property # pragma: no cover @property # pragma: no cover
def map(self) -> folium.Map: def map(self) -> folium.Map:
"""Shortcut to the `.city.map` object.""" """Alias of `.grid.city.map`."""
return self.grid.city.map return self.grid.city.map
def draw( def draw(

View file

@ -89,7 +89,7 @@ class Restaurant(meta.Base):
@property # pragma: no cover @property # pragma: no cover
def map(self) -> folium.Map: def map(self) -> folium.Map:
"""Shortcut to the `.address.city.map` object.""" """Alias of `.address.city.map`."""
return self.address.city.map return self.address.city.map
def draw( def draw(