]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
Default python_type impl now returns object
authorFederico Caselli <cfederico87@gmail.com>
Wed, 5 Feb 2025 22:41:32 +0000 (23:41 +0100)
committerFederico Caselli <cfederico87@gmail.com>
Wed, 12 Feb 2025 20:42:41 +0000 (21:42 +0100)
commit3a998cbb527beee0cab72c364436e51ca256efcd
tree2e2fb28332ef68d610f846a8265be9c57be9c637
parentf21ae633486380a26dc0b67b70ae1c0efc6b4dc4
Default python_type impl now returns object

The default implementation of :attr:`_sql.TypeEngine.python_type` now
returns ``object`` instead of ``NotImplementedError``, since that's the
base for all types in Python3.
The ``python_type`` of :class:`_sql.JSON` no longer returns ``dict``,
but instead fallbacks to the generic implementation.

Fixes: #10646
Change-Id: I2233e4a3d35a67b520a860d70afba8e5b22fd72d
doc/build/changelog/unreleased_21/10646.rst [new file with mode: 0644]
lib/sqlalchemy/sql/sqltypes.py
lib/sqlalchemy/sql/type_api.py
test/sql/test_types.py