Skip to content

Commit 3567aaa

Browse files
authored
Fix positional-only differences in sqlite3 (#7222)
1 parent 5e8a2a9 commit 3567aaa

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

stdlib/sqlite3/dbapi2.pyi

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import sys
22
from _typeshed import Self, StrOrBytesPath
33
from datetime import date, datetime, time
44
from typing import Any, Callable, Generator, Iterable, Iterator, Protocol, TypeVar
5-
from typing_extensions import final
5+
from typing_extensions import Literal, final
66

77
_T = TypeVar("_T")
88

@@ -183,7 +183,7 @@ class Connection:
183183

184184
def __call__(self, *args: Any, **kwargs: Any) -> Any: ...
185185
def __enter__(self: Self) -> Self: ...
186-
def __exit__(self, t: type | None, exc: BaseException | None, tb: Any | None) -> None: ...
186+
def __exit__(self, __type: type | None, __value: BaseException | None, __traceback: Any | None) -> Literal[False]: ...
187187

188188
class Cursor(Iterator[Any]):
189189
arraysize: Any
@@ -233,16 +233,16 @@ class ProgrammingError(DatabaseError): ...
233233
class Row:
234234
def __init__(self, *args: Any, **kwargs: Any) -> None: ...
235235
def keys(self): ...
236-
def __eq__(self, other): ...
237-
def __ge__(self, other): ...
238-
def __getitem__(self, index): ...
239-
def __gt__(self, other): ...
236+
def __eq__(self, __other): ...
237+
def __ge__(self, __other): ...
238+
def __getitem__(self, __index): ...
239+
def __gt__(self, __other): ...
240240
def __hash__(self): ...
241241
def __iter__(self): ...
242-
def __le__(self, other): ...
242+
def __le__(self, __other): ...
243243
def __len__(self): ...
244-
def __lt__(self, other): ...
245-
def __ne__(self, other): ...
244+
def __lt__(self, __other): ...
245+
def __ne__(self, __other): ...
246246

247247
if sys.version_info < (3, 8):
248248
class Statement:

0 commit comments

Comments
 (0)