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, Dict, List, Optional, Union
from django.contrib.messages.storage.base import BaseStorage, Message
class MessageEncoder(json.JSONEncoder):
allow_nan: bool
check_circular: bool
@@ -20,32 +19,13 @@ class MessageDecoder(json.JSONDecoder):
def process_messages(
self,
obj: Union[
Dict[
str,
Union[
List[
Union[
Dict[str, List[Union[int, str]]],
List[Union[int, str]],
]
],
List[Union[int, str]],
],
],
Dict[str, Union[List[Union[Dict[str, List[Union[int, str]]], List[Union[int, str]]]], List[Union[int, str]]]],
List[Union[List[Union[int, str]], str]],
str,
],
) -> Union[
Dict[str, Union[List[Union[Dict[str, Message], Message]], Message]],
List[
Union[
Dict[
str,
Union[List[Union[Dict[str, Message], Message]], Message],
],
Message,
]
],
List[Union[Dict[str, Union[List[Union[Dict[str, Message], Message]], Message]], Message]],
List[Union[Message, str]],
Message,
str,
@@ -53,15 +33,7 @@ class MessageDecoder(json.JSONDecoder):
def decode(
self, s: str, **kwargs: Any
) -> Union[
List[
Union[
Dict[
str,
Union[List[Union[Dict[str, Message], Message]], Message],
],
Message,
]
],
List[Union[Dict[str, Union[List[Union[Dict[str, Message], Message]], Message]], Message]],
List[Union[Message, str]],
Message,
]: ...