reformat with black

This commit is contained in:
Maxim Kurnikov
2018-07-29 23:34:58 +03:00
parent 4866354600
commit cf85607969
343 changed files with 6054 additions and 2158 deletions

View File

@@ -8,6 +8,7 @@ from datetime import date, time
from decimal import Decimal
from django.db.backends.sqlite3.base import DatabaseWrapper, SQLiteCursorWrapper
from typing import Any, Callable, Dict, List, Optional, Tuple, Union
logger: Any
class CursorWrapper:
@@ -19,12 +20,21 @@ class CursorWrapper:
def __iter__(self) -> None: ...
def __enter__(self) -> CursorWrapper: ...
def __exit__(self, type: None, value: None, traceback: None) -> None: ...
def callproc(self, procname: str, params: List[Any] = ..., kparams: Dict[str, int] = ...): ...
def callproc(
self, procname: str, params: List[Any] = ..., kparams: Dict[str, int] = ...
): ...
def execute(self, sql: str, params: Any = ...) -> SQLiteCursorWrapper: ...
def executemany(self, sql: Any, param_list: Any): ...
def _execute_with_wrappers(self, sql: str, params: Any, many: bool, executor: Callable) -> Optional[SQLiteCursorWrapper]: ...
def _execute_with_wrappers(
self, sql: str, params: Any, many: bool, executor: Callable
) -> Optional[SQLiteCursorWrapper]: ...
def _execute(self, sql: str, params: Any, *ignored_wrapper_args: Any): ...
def _executemany(self, sql: str, param_list: Union[List[Tuple[int]], List[Tuple[int, int, int]]], *ignored_wrapper_args: Any): ...
def _executemany(
self,
sql: str,
param_list: Union[List[Tuple[int]], List[Tuple[int, int, int]]],
*ignored_wrapper_args: Any,
): ...
class CursorDebugWrapper(CursorWrapper):
def execute(self, sql: str, params: Optional[Union[List[str], Tuple]] = ...): ...
@@ -35,6 +45,10 @@ def typecast_time(s: str) -> Optional[time]: ...
def typecast_timestamp(s: str) -> date: ...
def rev_typecast_decimal(d: Decimal) -> str: ...
def split_identifier(identifier: str) -> Tuple[str, str]: ...
def truncate_name(identifier: str, length: Optional[int] = ..., hash_len: int = ...) -> str: ...
def format_number(value: Optional[Decimal], max_digits: Optional[int], decimal_places: Optional[int]) -> Optional[str]: ...
def truncate_name(
identifier: str, length: Optional[int] = ..., hash_len: int = ...
) -> str: ...
def format_number(
value: Optional[Decimal], max_digits: Optional[int], decimal_places: Optional[int]
) -> Optional[str]: ...
def strip_quotes(table_name: str) -> str: ...