From: Mike Bayer Date: Tue, 14 Feb 2023 16:13:43 +0000 (-0500) Subject: fix typo "Annotation" -> "Annotated" and use typing_extensions X-Git-Tag: rel_2_0_4~15 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d50315cbd6b448287b1847473e3c6484f52474a7;p=thirdparty%2Fsqlalchemy%2Fsqlalchemy.git fix typo "Annotation" -> "Annotated" and use typing_extensions Fixes: #9305 Change-Id: I9f0ab24f609f6f557b5780209a85f0abe82b363e --- diff --git a/lib/sqlalchemy/orm/decl_api.py b/lib/sqlalchemy/orm/decl_api.py index 5f2b3c6966..d02012b86b 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):