Fixes: #7013
Fixes: #7015
Change-Id: Iba7eb8aeb37cec08e1bd1edcf28e05b02004afe7
registry = mapper_registry
metadata = mapper_registry.metadata
+ __init__ = mapper_registry.constructor
+
The above ``Base`` is equivalent to one created using the
:meth:`_orm.registry.generate_base` method and will be fully understood by
type analysis tools without the use of plugins.
registry = mapper_registry
metadata = mapper_registry.metadata
+ __init__ = mapper_registry.constructor
+
The :meth:`_orm.registry.generate_base` method provides the
implementation for the :func:`_orm.declarative_base` function, which
creates the :class:`_orm.registry` and base class all at once.