]> git.ipfire.org Git - thirdparty/psycopg.git/commit
fix: fix `status` annotation in `connection_summary` 1023/head
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:45:33 +0000 (11:45 +0100)
commitc5a053df93fdc49e4f44c73f6db4063a15dbb8fb
tree4ce934a88c74b152db1d1b935c3b9503bed3afd0
parent1b1c1d85567d3699988ea97cb1dd2e640dfca6e7
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