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 typing import Any, Optional
from django.db.backends.sqlite3.base import DatabaseWrapper
from typing import Callable, Optional, Union
class TransactionManagementError(ProgrammingError): ...
def get_connection(using: Optional[str] = ...) -> DatabaseWrapper: ...
@@ -30,6 +31,8 @@ class Atomic(ContextDecorator):
def __enter__(self) -> None: ...
def __exit__(self, exc_type: None, exc_value: None, traceback: None) -> None: ...
def atomic(using: Optional[Union[str, Callable]] = ..., savepoint: bool = ...) -> Callable: ...
def atomic(
using: Optional[Union[str, Callable]] = ..., savepoint: bool = ...
) -> Callable: ...
def _non_atomic_requests(view: Any, using: Any): ...
def non_atomic_requests(using: Callable = ...) -> Callable: ...