]> git.ipfire.org Git - thirdparty/psycopg.git/commitdiff
chore: drop annotation on empty lists, now unneeded
authorDaniele Varrazzo <daniele.varrazzo@gmail.com>
Thu, 26 Dec 2024 18:46:32 +0000 (19:46 +0100)
committerDaniele Varrazzo <daniele.varrazzo@gmail.com>
Thu, 9 Jan 2025 13:43:57 +0000 (14:43 +0100)
If needed, it is considered wrong anyway, because it should be annotated
as class attribute.

psycopg/psycopg/pq/_pq_ctypes.py

index f3a7b143fe3e617464b0096cdaa8e52449fef56e..b2da35f7b0f0fdbe4ae299c6fa261523447aa8b7 100644 (file)
@@ -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):