mirror of
https://github.com/davidhalter/django-stubs.git
synced 2025-12-15 08:17:08 +08:00
run black over stubs, add checking to travis
This commit is contained in:
@@ -13,7 +13,6 @@ from .features import DatabaseFeatures
|
||||
from .introspection import DatabaseIntrospection
|
||||
from .operations import DatabaseOperations
|
||||
|
||||
|
||||
def decoder(conv_func: Callable) -> Callable: ...
|
||||
|
||||
class DatabaseWrapper(BaseDatabaseWrapper):
|
||||
@@ -56,17 +55,13 @@ class DatabaseWrapper(BaseDatabaseWrapper):
|
||||
introspection_class: Any = ...
|
||||
ops_class: Any = ...
|
||||
def get_connection_params(self) -> Dict[str, Union[int, str]]: ...
|
||||
def get_new_connection(
|
||||
self, conn_params: Dict[str, Union[int, str]]
|
||||
) -> Connection: ...
|
||||
def get_new_connection(self, conn_params: Dict[str, Union[int, str]]) -> Connection: ...
|
||||
def init_connection_state(self) -> None: ...
|
||||
def create_cursor(self, name: None = ...) -> SQLiteCursorWrapper: ...
|
||||
def close(self) -> None: ...
|
||||
def disable_constraint_checking(self) -> bool: ...
|
||||
def enable_constraint_checking(self) -> None: ...
|
||||
def check_constraints(
|
||||
self, table_names: Optional[List[str]] = ...
|
||||
) -> None: ...
|
||||
def check_constraints(self, table_names: Optional[List[str]] = ...) -> None: ...
|
||||
def is_usable(self): ...
|
||||
def is_in_memory_db(self) -> bool: ...
|
||||
|
||||
@@ -74,13 +69,7 @@ FORMAT_QMARK_REGEX: Any
|
||||
|
||||
class SQLiteCursorWrapper(Database.Cursor):
|
||||
def execute(
|
||||
self,
|
||||
query: str,
|
||||
params: Optional[
|
||||
Union[List[bool], List[datetime], List[float], Tuple]
|
||||
] = ...,
|
||||
) -> SQLiteCursorWrapper: ...
|
||||
def executemany(
|
||||
self, query: str, param_list: Union[Iterator[Any], List[Tuple[int]]]
|
||||
self, query: str, params: Optional[Union[List[bool], List[datetime], List[float], Tuple]] = ...
|
||||
) -> SQLiteCursorWrapper: ...
|
||||
def executemany(self, query: str, param_list: Union[Iterator[Any], List[Tuple[int]]]) -> SQLiteCursorWrapper: ...
|
||||
def convert_query(self, query: str) -> str: ...
|
||||
|
||||
Reference in New Issue
Block a user