summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/orm/decl_api.py
diff options
context:
space:
mode:
Diffstat (limited to 'lib/sqlalchemy/orm/decl_api.py')
-rw-r--r--lib/sqlalchemy/orm/decl_api.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/sqlalchemy/orm/decl_api.py b/lib/sqlalchemy/orm/decl_api.py
index 5f2b3c696..d02012b86 100644
--- a/lib/sqlalchemy/orm/decl_api.py
+++ b/lib/sqlalchemy/orm/decl_api.py
@@ -656,14 +656,14 @@ class DeclarativeBase(
collection as well as a specific value for
:paramref:`_orm.registry.type_annotation_map`::
- from typing import Annotation
+ from typing_extensions import Annotated
from sqlalchemy import BigInteger
from sqlalchemy import MetaData
from sqlalchemy import String
from sqlalchemy.orm import DeclarativeBase
- bigint = Annotation(int, "bigint")
+ bigint = Annotated(int, "bigint")
my_metadata = MetaData()
class Base(DeclarativeBase):