@@ -2,7 +2,7 @@ import sys
2
2
from _typeshed import Self , StrOrBytesPath
3
3
from datetime import date , datetime , time
4
4
from typing import Any , Callable , Generator , Iterable , Iterator , Protocol , TypeVar
5
- from typing_extensions import final
5
+ from typing_extensions import Literal , final
6
6
7
7
_T = TypeVar ("_T" )
8
8
@@ -183,7 +183,7 @@ class Connection:
183
183
184
184
def __call__ (self , * args : Any , ** kwargs : Any ) -> Any : ...
185
185
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 ] : ...
187
187
188
188
class Cursor (Iterator [Any ]):
189
189
arraysize : Any
@@ -233,16 +233,16 @@ class ProgrammingError(DatabaseError): ...
233
233
class Row :
234
234
def __init__ (self , * args : Any , ** kwargs : Any ) -> None : ...
235
235
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 ): ...
240
240
def __hash__ (self ): ...
241
241
def __iter__ (self ): ...
242
- def __le__ (self , other ): ...
242
+ def __le__ (self , __other ): ...
243
243
def __len__ (self ): ...
244
- def __lt__ (self , other ): ...
245
- def __ne__ (self , other ): ...
244
+ def __lt__ (self , __other ): ...
245
+ def __ne__ (self , __other ): ...
246
246
247
247
if sys .version_info < (3 , 8 ):
248
248
class Statement :
0 commit comments