Make mypy as strict as practical #13
1 changed files with 2 additions and 2 deletions
Type the relationships of Path
commit
af0e3cf1a1
|
|
@ -109,11 +109,11 @@ class Path(meta.Base):
|
|||
)
|
||||
|
||||
# Relationships
|
||||
first_address = orm.relationship(
|
||||
first_address: orm.Mapped[db.Address] = orm.relationship(
|
||||
"Address",
|
||||
foreign_keys="[Path.first_address_id, Path.city_id]",
|
||||
)
|
||||
second_address = orm.relationship(
|
||||
second_address: orm.Mapped[db.Address] = orm.relationship(
|
||||
"Address",
|
||||
foreign_keys="[Path.second_address_id, Path.city_id]",
|
||||
overlaps="first_address",
|
||||
|
|
|
|||
Loading…
Reference in a new issue