Fix dunder-method positional-only parameter discrepancies in third-party stubs (#14529)

This commit is contained in:
Brian Schubert
2025-08-08 12:12:44 +02:00
committed by GitHub
parent 2e3203fdff
commit 11907e2825
11 changed files with 113 additions and 99 deletions
+2 -2
View File
@@ -209,7 +209,7 @@ class Column:
def __len__(self) -> int: ...
def __lt__(self, other, /): ...
def __ne__(self, other, /): ...
def __setstate__(self, state): ...
def __setstate__(self, state, /): ...
class ConnectionInfo:
# Note: the following properties can be None if their corresponding libpq function
@@ -277,7 +277,7 @@ class Error(Exception):
pgerror: str | None
def __init__(self, *args, **kwargs) -> None: ...
def __reduce__(self): ...
def __setstate__(self, state): ...
def __setstate__(self, state, /): ...
class DatabaseError(Error): ...
class DataError(DatabaseError): ...