]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
Remove "subclass existing types" use case
authorMike Bayer <mike_mp@zzzcomputing.com>
Fri, 29 Mar 2019 13:42:43 +0000 (09:42 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Fri, 29 Mar 2019 13:46:55 +0000 (09:46 -0400)
commitfd2ecb5f87c1c0132263b5a35067c4bb76160fb2
tree4559cdf6cf6c299542a15b17d8d568d56be4f3b2
parent9168aae5e7cc9a753acf7e132c89e35eb56bb4ea
Remove "subclass existing types" use case

Thanks to :ref:`change_3981`, we no longer need to rely on recipes that
subclass dialect-specific types directly, :class:`.TypeDecorator` can now
handle all cases.   Additionally, the above change made it slightly less
likely that a direct subclass of a base SQLAlchemy type would work as
expected, which could be misleading.  Documentation has been updated to use
:class:`.TypeDecorator` for these examples including the PostgreSQL
"ArrayOfEnum" example datatype and direct support for the "subclass a type
directly" has been removed.

Fixes: #4580
Change-Id: I866f246cccc736ea618dc965ab3604762f7a52fe
doc/build/changelog/unreleased_13/4580.rst [new file with mode: 0644]
doc/build/core/custom_types.rst
lib/sqlalchemy/dialects/postgresql/base.py