Unify the way the imports work #9

Merged
alexander merged 21 commits from unify-imports into develop 2026-11-30 20:30:54 +01:00
Showing only changes of commit 0b2a1197a2 - Show all commits

Import sqlalchemy.ext.hybrid as sa_hybrid

Alexander Hess 2026-11-30 14:22:42 +01:00
Signed by: alexander
GPG key ID: B46EDB4DFC26805D

View file

@ -10,7 +10,7 @@ import folium
import sqlalchemy as sa
from sqlalchemy import orm
from sqlalchemy.dialects import postgresql as psql
from sqlalchemy.ext import hybrid
from sqlalchemy.ext import hybrid as sa_hybrid
from velofy import config
from velofy.db import meta
@ -124,7 +124,7 @@ class Address(meta.Base):
"""Non-literal text representation."""
return f"<{self.__class__.__name__}({self.street} in {self.city_name})>"
@hybrid.hybrid_property
@sa_hybrid.hybrid_property
def is_primary(self) -> bool:
"""If an `Address` object is the earliest one entered at its location.