]> git.ipfire.org Git - thirdparty/psycopg.git/commit
fix: don't raise a warning using a builtin for JSON dumps/loads
authorDaniele Varrazzo <daniele.varrazzo@gmail.com>
Wed, 10 Sep 2025 10:07:46 +0000 (12:07 +0200)
committerDaniele Varrazzo <daniele.varrazzo@gmail.com>
Wed, 10 Sep 2025 10:08:56 +0000 (12:08 +0200)
commit74d20b52df430d3c3d11fb4949e8d252865c6b67
tree5909c5b585386495fba5e612e376219b4da73915
parent94583702ada92187c8b1bb4da8de0d30a879c8bd
fix: don't raise a warning using a builtin for JSON dumps/loads

These types are stable so will not leak. However they have no
code/closure dunder attr so they will raise a warning.

Fix #1165.
docs/news.rst
psycopg/psycopg/types/json.py
tests/types/test_json.py