]> 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:51:28 +0000 (09:51 -0400)
commit408c936c77c6aaeceab0e0b001ed745ceb9d19d4
tree3f2508b46b206cd5f2e06cbd4490e46438f24da8
parenta8b2fbb55c6de302b053b4309c6e53cd7f748448
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
doc/build/changelog/unreleased_14/7943.rst [new file with mode: 0644]
lib/sqlalchemy/dialects/postgresql/base.py
test/dialect/postgresql/test_types.py