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

@@ -1 +1 @@
from django.dispatch.dispatcher import (Signal as Signal, receiver as receiver) # NOQA
from django.dispatch.dispatcher import Signal as Signal, receiver as receiver # NOQA

View File

@@ -13,9 +13,7 @@ class Signal:
lock: Any = ...
use_caching: Any = ...
sender_receivers_cache: Any = ...
def __init__(
self, providing_args: List[str] = ..., use_caching: bool = ...
) -> None: ...
def __init__(self, providing_args: List[str] = ..., use_caching: bool = ...) -> None: ...
def connect(
self,
receiver: Any,
@@ -30,13 +28,7 @@ class Signal:
dispatch_uid: Optional[str] = ...,
) -> bool: ...
def has_listeners(self, sender: Any = ...) -> bool: ...
def send(
self, sender: Any, **named: Any
) -> List[Tuple[Callable, Optional[str]]]: ...
def send_robust(
self, sender: SimpleTestCase, **named: Any
) -> List[Tuple[Callable, Union[ValueError, str]]]: ...
def send(self, sender: Any, **named: Any) -> List[Tuple[Callable, Optional[str]]]: ...
def send_robust(self, sender: SimpleTestCase, **named: Any) -> List[Tuple[Callable, Union[ValueError, str]]]: ...
def receiver(
signal: Union[List[Signal], Signal], **kwargs: Any
) -> Callable: ...
def receiver(signal: Union[List[Signal], Signal], **kwargs: Any) -> Callable: ...