Files
sqlalchemy/test/orm
Mike Bayer 428ea01f00 read from cls.__dict__ so init_subclass works
Modified the :class:`.DeclarativeMeta` metaclass to pass ``cls.__dict__``
into the declarative scanning process to look for attributes, rather than
the separate dictionary passed to the type's ``__init__()`` method. This
allows user-defined base classes that add attributes within an
``__init_subclass__()`` to work as expected, as ``__init_subclass__()`` can
only affect the ``cls.__dict__`` itself and not the other dictionary. This
is technically a regression from 1.3 where ``__dict__`` was being used.

Additionally makes the reference between ClassManager and
the declarative configuration object a weak reference, so that it
can be discarded after mappers are set up.

Fixes: #7900
Change-Id: I3c2fd4e227cc1891aa4bb3d7d5b43d5686f9f27c
2022-04-12 15:10:32 -04:00
..
2021-11-22 15:03:17 +00:00
2022-03-15 21:38:29 -04:00
2021-12-02 14:57:42 -05:00
2021-09-29 22:19:43 -04:00
2021-10-29 21:11:37 -04:00
2021-10-26 14:44:30 -04:00
2022-01-24 15:14:01 -05:00
2022-03-28 15:58:35 -04:00
2022-04-07 10:47:53 -04:00
2022-04-07 10:47:53 -04:00
2021-11-24 22:51:27 -05:00