]> git.ipfire.org Git - thirdparty/psycopg.git/commitdiff
Another couple of functions marked as returning Oid
authorDaniele Varrazzo <daniele.varrazzo@gmail.com>
Sun, 29 Mar 2020 16:11:27 +0000 (05:11 +1300)
committerDaniele Varrazzo <daniele.varrazzo@gmail.com>
Sun, 29 Mar 2020 16:11:27 +0000 (05:11 +1300)
psycopg3/pq/pq_ctypes.py

index a7917e8ee99e44ebe31e2f6932062ac04202e264..15ca32778516399ee5545e3df1bd3054cdc19f74 100644 (file)
@@ -432,7 +432,7 @@ class PGresult:
     def fname(self, column_number: int) -> int:
         return impl.PQfname(self.pgresult_ptr, column_number)  # type: ignore
 
-    def ftable(self, column_number: int) -> int:
+    def ftable(self, column_number: int) -> Oid:
         return impl.PQftable(self.pgresult_ptr, column_number)  # type: ignore
 
     def ftablecol(self, column_number: int) -> int:
@@ -490,7 +490,7 @@ class PGresult:
         return int(rv) if rv else None
 
     @property
-    def oid_value(self) -> int:
+    def oid_value(self) -> Oid:
         return impl.PQoidValue(self.pgresult_ptr)  # type: ignore