run black over stubs, add checking to travis

This commit is contained in:
Maxim Kurnikov
2018-12-03 18:52:44 +03:00
parent d5bc7d4ab2
commit cf6119bf9b
420 changed files with 2295 additions and 8384 deletions

View File

@@ -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: ...