From: Daniele Varrazzo Date: Sun, 29 Mar 2020 16:11:27 +0000 (+1300) Subject: Another couple of functions marked as returning Oid X-Git-Tag: 3.0.dev0~644 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=69081ac624d81da93c060c3bb36b0bf1a2fc5773;p=thirdparty%2Fpsycopg.git Another couple of functions marked as returning Oid --- diff --git a/psycopg3/pq/pq_ctypes.py b/psycopg3/pq/pq_ctypes.py index a7917e8ee..15ca32778 100644 --- a/psycopg3/pq/pq_ctypes.py +++ b/psycopg3/pq/pq_ctypes.py @@ -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