diff options
author | Mike Bayer <mike_mp@zzzcomputing.com> | 2023-02-14 11:13:43 -0500 |
---|---|---|
committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2023-02-14 11:13:43 -0500 |
commit | d50315cbd6b448287b1847473e3c6484f52474a7 (patch) | |
tree | ed70fd55166672c7a3407f6de2e99ca556f920ec /lib/sqlalchemy/orm/decl_api.py | |
parent | 1b726c48384931c813d254b6451cfb6ea4e5b882 (diff) | |
download | sqlalchemy-d50315cbd6b448287b1847473e3c6484f52474a7.tar.gz |
fix typo "Annotation" -> "Annotated" and use typing_extensions
Fixes: #9305
Change-Id: I9f0ab24f609f6f557b5780209a85f0abe82b363e
Diffstat (limited to 'lib/sqlalchemy/orm/decl_api.py')
-rw-r--r-- | lib/sqlalchemy/orm/decl_api.py | 4 |
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): |