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

@@ -3,7 +3,6 @@ from typing import Any, Callable, Optional, Union, ContextManager
from django.db import ProgrammingError
class TransactionManagementError(ProgrammingError): ...
def get_connection(using: Optional[str] = ...) -> Any: ...
@@ -24,11 +23,7 @@ class Atomic(ContextDecorator):
savepoint: bool = ...
def __init__(self, using: Optional[str], savepoint: bool) -> None: ...
def __enter__(self) -> None: ...
def __exit__(
self, exc_type: None, exc_value: None, traceback: None
) -> None: ...
def __exit__(self, exc_type: None, exc_value: None, traceback: None) -> None: ...
def atomic(
using: Optional[Union[Callable, str]] = ..., savepoint: bool = ...
) -> ContextManager[Atomic]: ...
def atomic(using: Optional[Union[Callable, str]] = ..., savepoint: bool = ...) -> ContextManager[Atomic]: ...
def non_atomic_requests(using: Callable = ...) -> Callable: ...