]> git.ipfire.org Git - thirdparty/psycopg.git/commit
fix: fix `status` annotation in `connection_summary`
authorsobolevn <mail@sobolevn.me>
Thu, 13 Mar 2025 10:40:42 +0000 (13:40 +0300)
committerDaniele Varrazzo <daniele.varrazzo@gmail.com>
Fri, 14 Mar 2025 10:53:03 +0000 (11:53 +0100)
commitb6ead96af9cb36d3e8007f512383042fe35788f5
treeae0b7d300c620ed0c45d394f798930a810464b49
parenteb2f0bdc7ddecd7e76c44de6ed86d523428a5e74
fix: fix `status` annotation in `connection_summary`

Currently enum names are strings, but this is being changed to become
Literal. When this will happen, the type inferred will not be valid
anymore, as we mutate it and manipulate it as string in the function.

See https://github.com/python/mypy/pull/18797
psycopg/psycopg/pq/misc.py