mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-08 21:14:48 +08:00
sqlite3: add Connection arg to cursorClass (#10645)
This commit is contained in:
@@ -351,7 +351,7 @@ class Connection:
|
||||
@overload
|
||||
def cursor(self, cursorClass: None = None) -> Cursor: ...
|
||||
@overload
|
||||
def cursor(self, cursorClass: Callable[[], _CursorT]) -> _CursorT: ...
|
||||
def cursor(self, cursorClass: Callable[[Connection], _CursorT]) -> _CursorT: ...
|
||||
def execute(self, sql: str, parameters: _Parameters = ...) -> Cursor: ...
|
||||
def executemany(self, __sql: str, __parameters: Iterable[_Parameters]) -> Cursor: ...
|
||||
def executescript(self, __sql_script: str) -> Cursor: ...
|
||||
|
||||
Reference in New Issue
Block a user