]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
Implement UUID.python_type
authorAlex Grönholm <alex.gronholm@nextday.fi>
Mon, 18 Apr 2022 17:07:19 +0000 (13:07 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Thu, 21 Apr 2022 13:52:11 +0000 (09:52 -0400)
commitb41c3e7f56234b9873bbb547339b66fdcd10fd95
tree7eb98eba8c8455e15ffeba1eada873d879913b2c
parent202dcadd90c9a6b31e114fe41d8e0a5e78e05959
Implement UUID.python_type

Implemented :attr:`_postgresql.UUID.python_type` attribute for the
:class:`_postgresql.UUID` type object. The attribute will return either
``str`` or ``uuid.UUID`` based on the :paramref:`_postgresql.UUID.as_uuid`
parameter setting. Previously, this attribute was unimplemented. Pull
request courtesy Alex Grönholm.

Fixes: #7943
Closes: #7944
Change-Id: Ic4fbaeee134d586b08339801968e787cc7e14285
(cherry picked from commit 408c936c77c6aaeceab0e0b001ed745ceb9d19d4)
doc/build/changelog/unreleased_14/7943.rst [new file with mode: 0644]
lib/sqlalchemy/dialects/postgresql/base.py
test/dialect/postgresql/test_types.py