From: Gleb Kisenkov Date: Wed, 30 Nov 2022 09:51:37 +0000 (+0100) Subject: Fixed type of an argument to automap_base X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fafaf0527eae701a7450d443187a83311e484146;p=thirdparty%2Fsqlalchemy%2Fsqlalchemy.git Fixed type of an argument to automap_base --- diff --git a/lib/sqlalchemy/ext/automap.py b/lib/sqlalchemy/ext/automap.py index 1b3b2547f0..2bf72424d6 100644 --- a/lib/sqlalchemy/ext/automap.py +++ b/lib/sqlalchemy/ext/automap.py @@ -596,7 +596,6 @@ from ..orm import interfaces from ..orm import RelaionshipConstructorType from ..orm import relationship from ..orm.base import RelationshipDirection -from ..orm.decl_api import DeclarativeBase from ..orm.decl_base import _DeferredMapperConfig from ..orm.mapper import _CONFIGURE_MUTEX from ..orm.relationships import _ORMBackrefArgument @@ -1093,7 +1092,7 @@ class AutomapBase: def automap_base( - declarative_base: Optional[Type[DeclarativeBase]] = None, **kw: Any + declarative_base: Optional[Type[Any]] = None, **kw: Any ) -> Any: r"""Produce a declarative automap base.