Properly rephrase
Exact aliases now say so.
This commit is contained in:
parent
e52883e682
commit
fb0ac53e02
5 changed files with 8 additions and 9 deletions
|
|
@ -150,8 +150,7 @@ class Address(meta.Base):
|
|||
|
||||
The returned `Location` object relates to `.city.southwest`.
|
||||
|
||||
See also the `.x` and `.y` properties that are shortcuts for
|
||||
`.location.x` and `.location.y`.
|
||||
`.x` and `.y` are aliases of `.location.x` and `.location.y`.
|
||||
|
||||
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.
|
||||
|
||||
Shortcut for `.location.x`.
|
||||
Alias of `.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.
|
||||
|
||||
Shortcut for `.location.y`.
|
||||
Alias of `.location.y`.
|
||||
"""
|
||||
return self.location.y
|
||||
|
||||
|
|
@ -192,7 +191,7 @@ class Address(meta.Base):
|
|||
|
||||
@property # pragma: no cover
|
||||
def map(self) -> folium.Map:
|
||||
"""Shortcut to the `.city.map` object."""
|
||||
"""Alias of `.city.map`."""
|
||||
return self.city.map
|
||||
|
||||
def draw(self, **kwargs: t.Any) -> folium.Map: # pragma: no cover
|
||||
|
|
|
|||
|
|
@ -45,7 +45,7 @@ class Customer(meta.Base):
|
|||
|
||||
@property # pragma: no cover
|
||||
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
|
||||
|
||||
def draw( # noqa:C901,PLR0912
|
||||
|
|
|
|||
|
|
@ -140,7 +140,7 @@ class Grid(meta.Base):
|
|||
|
||||
@property # pragma: no cover
|
||||
def map(self) -> folium.Map:
|
||||
"""Shortcut to the `.city.map` object."""
|
||||
"""Alias of `.city.map`."""
|
||||
return self.city.map
|
||||
|
||||
def draw(self, **kwargs: t.Any) -> folium.Map: # pragma: no cover
|
||||
|
|
|
|||
|
|
@ -164,7 +164,7 @@ class Pixel(meta.Base):
|
|||
|
||||
@property # pragma: no cover
|
||||
def map(self) -> folium.Map:
|
||||
"""Shortcut to the `.city.map` object."""
|
||||
"""Alias of `.grid.city.map`."""
|
||||
return self.grid.city.map
|
||||
|
||||
def draw(
|
||||
|
|
|
|||
|
|
@ -89,7 +89,7 @@ class Restaurant(meta.Base):
|
|||
|
||||
@property # pragma: no cover
|
||||
def map(self) -> folium.Map:
|
||||
"""Shortcut to the `.address.city.map` object."""
|
||||
"""Alias of `.address.city.map`."""
|
||||
return self.address.city.map
|
||||
|
||||
def draw(
|
||||
|
|
|
|||
Loading…
Reference in a new issue