Commit 143c8a54 authored by Jakob Moser's avatar Jakob Moser
Browse files

Explicitly annotate type

Which also makes it non-nullable
parent f74725be
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
from uuid import UUID

from sqlalchemy.orm import Mapped, mapped_column
from sqlalchemy.schema import ForeignKey

@@ -12,7 +14,7 @@ class Card(Retrievable):
    __tablename__ = "card"

    id: Mapped[int] = mapped_column(primary_key=True)
    owner_uuid = mapped_column(ForeignKey("person.uuid"))
    owner_uuid: Mapped[UUID] = mapped_column(ForeignKey("person.uuid"))

    @property
    def primary_key(self) -> int: