From: Denis Laxalde Date: Tue, 28 Mar 2023 09:45:57 +0000 (+0200) Subject: chore: fix declaration of PQsetTraceFlags in pyi X-Git-Tag: pool-3.2.0~111 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=f7eed350555a41c1e9cf7f8575f235a73b7c75a5;p=thirdparty%2Fpsycopg.git chore: fix declaration of PQsetTraceFlags in pyi Running 'python -m psycopg.pq._pq_ctypes' currently produces a diff because _PQsetTraceFlags is not present in .pyi but PQsetTraceFlags is. --- diff --git a/psycopg/psycopg/pq/_pq_ctypes.pyi b/psycopg/psycopg/pq/_pq_ctypes.pyi index 5d2ee3f8f..545fec421 100644 --- a/psycopg/psycopg/pq/_pq_ctypes.pyi +++ b/psycopg/psycopg/pq/_pq_ctypes.pyi @@ -112,6 +112,7 @@ def PQtrace( arg1: Optional[PGconn_struct], arg2: _Pointer[FILE], # type: ignore[type-var] ) -> None: ... +def PQsetTraceFlags(arg1: Optional[PGconn_struct], arg2: int) -> None: ... def PQencryptPasswordConn( arg1: Optional[PGconn_struct], arg2: bytes, @@ -199,7 +200,7 @@ def PQsetSingleRowMode(arg1: Optional[PGconn_struct]) -> int: ... def PQgetCancel(arg1: Optional[PGconn_struct]) -> PGcancel_struct: ... def PQfreeCancel(arg1: Optional[PGcancel_struct]) -> None: ... def PQputCopyData(arg1: Optional[PGconn_struct], arg2: bytes, arg3: int) -> int: ... -def PQsetTraceFlags(arg1: Optional[PGconn_struct], arg2: int) -> None: ... +def _PQsetTraceFlags(arg1: Optional[PGconn_struct], arg2: int) -> None: ... def PQuntrace(arg1: Optional[PGconn_struct]) -> None: ... def PQfreemem(arg1: Any) -> None: ... def _PQencryptPasswordConn(arg1: Optional[PGconn_struct], arg2: bytes, arg3: bytes, arg4: bytes) -> Optional[bytes]: ...