Glossary: PostgreSQL for Developers
type hint
Also written: Mapped
A colon after a name and then the type it holds, like name: str. Python ignores hints, but SQLAlchemy reads them, so Mapped[str | None] means text or NULL.
Glossary: PostgreSQL for Developers
Also written: Mapped
A colon after a name and then the type it holds, like name: str. Python ignores hints, but SQLAlchemy reads them, so Mapped[str | None] means text or NULL.