mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-10 05:51:52 +08:00
geting rid of backslashes and other stuff
This commit is contained in:
@@ -1,20 +1,17 @@
|
||||
# Stubs for sqlite3.dbapi2 (Python 3.5)
|
||||
#
|
||||
# NOTE: This dynamically typed stub was automatically generated by stubgen.
|
||||
# Filip Hron <filip.hron@gmail.com>
|
||||
# based heavily on Andrey Vlasovskikh's python-skeletons https://github.com/JetBrains/python-skeletons/blob/master/sqlite3.py
|
||||
|
||||
from typing import Any, Union, List
|
||||
from numbers import Integral as _Integral
|
||||
from datetime import time as _time, datetime as _datetime
|
||||
from collections import Iterable as _Iterable
|
||||
# from collections import Callable as _Callable
|
||||
from sqlite3 import Connection as _Connection, Cursor as _Cursor
|
||||
from datetime import time, datetime
|
||||
from collections import Iterable
|
||||
|
||||
paramstyle = ... # type: str
|
||||
threadsafety = ... # type: int
|
||||
apilevel = ... # type: str
|
||||
Date = ... # type: _datetime
|
||||
Time = ... # type: _time
|
||||
Timestamp = ... # type: _datetime
|
||||
Date = ... # type: datetime
|
||||
Time = ... # type: time
|
||||
Timestamp = ... # type: datetime
|
||||
|
||||
def DateFromTicks(ticks): ...
|
||||
def TimeFromTicks(ticks): ...
|
||||
@@ -69,13 +66,13 @@ version = ... # type: str
|
||||
# TODO: adapt needs to get probed
|
||||
def adapt(obj, protocol, alternate): ...
|
||||
def complete_statement(sql: str) -> bool: ...
|
||||
def connect(database: Union[bytes, unicode],\
|
||||
timeout: float = ... ,\
|
||||
detect_types: int = ...,\
|
||||
isolation_level: Union[str, None] = ...,\
|
||||
check_same_thread: bool = ...,\
|
||||
factory: Union[_Connection, None] = ...,\
|
||||
cached_statements: int = ...) -> _Connection: ...
|
||||
def connect(database: Union[bytes, unicode],
|
||||
timeout: float = ... ,
|
||||
detect_types: int = ...,
|
||||
isolation_level: Union[str, None] = ...,
|
||||
check_same_thread: bool = ...,
|
||||
factory: Union[Connection, None] = ...,
|
||||
cached_statements: int = ...) -> Connection: ...
|
||||
def enable_callback_tracebacks(flag: bool) -> None: ...
|
||||
def enable_shared_cache(do_enable: int) -> None: ...
|
||||
def register_adapter(type: type, callable: Any) -> None: ...
|
||||
@@ -107,17 +104,13 @@ class Connection:
|
||||
def close(self) -> None: ...
|
||||
def commit(self) -> None: ...
|
||||
def create_aggregate(self, name: str, num_params: int, aggregate_class: type) -> None: ...
|
||||
# TODO: callable var specified as collections.Callable class type in __doc__
|
||||
# but is invalid when imported
|
||||
# def create_collation(self, name: str, callable: _Callable) -> None: ...
|
||||
# def create_function(self, name: str, num_params: int, func: _Callable) -> None: ...
|
||||
def create_collation(self, name: str, callable: Any) -> None: ...
|
||||
def create_function(self, name: str, num_params: int, func: Any) -> None: ...
|
||||
def cursor(self, cursorClass= Union[type, None]) -> _Cursor: ...
|
||||
def execute(self, sql: str, parameters: _Iterable) -> _Cursor: ...
|
||||
def cursor(self, cursorClass= Union[type, None]) -> Cursor: ...
|
||||
def execute(self, sql: str, parameters: Iterable) -> Cursor: ...
|
||||
# TODO: please check in executemany() if seq_of_parameters type is possible like this
|
||||
def executemany(self, sql: str, seq_of_parameters: _Iterable[_Iterable]) -> _Cursor: ...
|
||||
def executescript(self, sql_script: Union[bytes, unicode]) -> _Cursor: ...
|
||||
def executemany(self, sql: str, seq_of_parameters: Iterable[Iterable]) -> Cursor: ...
|
||||
def executescript(self, sql_script: Union[bytes, unicode]) -> Cursor: ...
|
||||
def interrupt(self, *args, **kwargs) -> None: ...
|
||||
def iterdump(self, *args, **kwargs) -> None: ...
|
||||
def rollback(self, *args, **kwargs): ...
|
||||
@@ -144,9 +137,9 @@ class Cursor:
|
||||
# however, the name of the __init__ variable is unknown
|
||||
def __init__(self, *args, **kwargs): ...
|
||||
def close(self, *args, **kwargs): ...
|
||||
def execute(self, sql: str, parameters: _Iterable) -> _Cursor: ...
|
||||
def executemany(self, sql: str, seq_of_parameters: _Iterable[_Iterable]): ...
|
||||
def executescript(self, sql_script: Union[bytes, unicode]) -> _Cursor: ...
|
||||
def execute(self, sql: str, parameters: Iterable) -> Cursor: ...
|
||||
def executemany(self, sql: str, seq_of_parameters: Iterable[Iterable]): ...
|
||||
def executescript(self, sql_script: Union[bytes, unicode]) -> Cursor: ...
|
||||
def fetchall(self) -> List[tuple]: ...
|
||||
def fetchmany(self, size: _Integral = ...) -> List[tuple]: ...
|
||||
def fetchone(self) -> Union[tuple, None]: ...
|
||||
|
||||
Reference in New Issue
Block a user