fix(psycopg2): fix copy_expert signature (#11099)

This commit is contained in:
Mehdi GMIRA
2023-12-06 08:11:41 +01:00
committed by GitHub
parent 9eb099ed6b
commit 64773f398d

View File

@@ -83,7 +83,6 @@ threadsafety: int
__libpq_version__: int
class _SupportsReadAndReadline(SupportsRead[str], SupportsReadline[str], Protocol): ...
class _SupportsReadAndReadlineAndWrite(_SupportsReadAndReadline, SupportsWrite[str], Protocol): ...
class cursor:
arraysize: int
@@ -119,7 +118,9 @@ class cursor:
def callproc(self, __procname: str | bytes, __parameters: _Vars = None) -> None: ...
def cast(self, __oid: int, __s: str | bytes) -> Any: ...
def close(self) -> None: ...
def copy_expert(self, sql: str | bytes | Composable, file: _SupportsReadAndReadlineAndWrite, size: int = 8192) -> None: ...
def copy_expert(
self, sql: str | bytes | Composable, file: _SupportsReadAndReadline | SupportsWrite[str], size: int = 8192
) -> None: ...
def copy_from(
self,
file: _SupportsReadAndReadline,