summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/orm/decl_api.py
diff options
context:
space:
mode:
authormike bayer <mike_mp@zzzcomputing.com>2022-10-19 13:33:34 +0000
committerGerrit Code Review <gerrit@ci3.zzzcomputing.com>2022-10-19 13:33:34 +0000
commit3bbb98353aca7f589886ceddb6ba8cf39efa4733 (patch)
treebe6524a9400746245a7a161df06e8058e0fd9f83 /lib/sqlalchemy/orm/decl_api.py
parent4b361c570928b2485772a82f40613a1ecc5183a5 (diff)
parentde7007e7cc6231b067df71ca79efee75f3317eae (diff)
downloadsqlalchemy-3bbb98353aca7f589886ceddb6ba8cf39efa4733.tar.gz
Merge "call super().__init_subclass__(); support GenericAlias" into main
Diffstat (limited to 'lib/sqlalchemy/orm/decl_api.py')
-rw-r--r--lib/sqlalchemy/orm/decl_api.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/sqlalchemy/orm/decl_api.py b/lib/sqlalchemy/orm/decl_api.py
index 5724d53a2..a43b59a45 100644
--- a/lib/sqlalchemy/orm/decl_api.py
+++ b/lib/sqlalchemy/orm/decl_api.py
@@ -581,7 +581,6 @@ class MappedAsDataclass(metaclass=DCTransformDeclarative):
match_args: Union[_NoArg, bool] = _NoArg.NO_ARG,
kw_only: Union[_NoArg, bool] = _NoArg.NO_ARG,
) -> None:
-
apply_dc_transforms: _DataclassArguments = {
"init": init,
"repr": repr,
@@ -696,6 +695,7 @@ class DeclarativeBase(
_setup_declarative_base(cls)
else:
_as_declarative(cls._sa_registry, cls, cls.__dict__)
+ super().__init_subclass__()
def _check_not_declarative(cls: Type[Any], base: Type[Any]) -> None: