From: Daniele Varrazzo Date: Thu, 26 Dec 2024 18:46:32 +0000 (+0100) Subject: chore: drop annotation on empty lists, now unneeded X-Git-Tag: 3.2.4~7^2~5 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f6792b691ccf0f37d8a2434a9b70b8bd5fbf0eb8;p=thirdparty%2Fpsycopg.git chore: drop annotation on empty lists, now unneeded If needed, it is considered wrong anyway, because it should be annotated as class attribute. --- diff --git a/psycopg/psycopg/pq/_pq_ctypes.py b/psycopg/psycopg/pq/_pq_ctypes.py index f3a7b143f..b2da35f7b 100644 --- a/psycopg/psycopg/pq/_pq_ctypes.py +++ b/psycopg/psycopg/pq/_pq_ctypes.py @@ -58,11 +58,11 @@ Oid = c_uint class PGconn_struct(Structure): - _fields_: list[tuple[str, type]] = [] + _fields_ = [] class PGresult_struct(Structure): - _fields_: list[tuple[str, type]] = [] + _fields_ = [] class PQconninfoOption_struct(Structure): @@ -86,11 +86,11 @@ class PGnotify_struct(Structure): class PGcancelConn_struct(Structure): - _fields_: list[tuple[str, type]] = [] + _fields_ = [] class PGcancel_struct(Structure): - _fields_: list[tuple[str, type]] = [] + _fields_ = [] class PGresAttDesc_struct(Structure):