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

@@ -5,7 +5,6 @@ from django.core.handlers.wsgi import WSGIRequest
from django.http.request import QueryDict
from django.utils.datastructures import ImmutableList, MultiValueDict
class MultiPartParserError(Exception): ...
class InputStreamExhausted(Exception): ...
@@ -18,17 +17,13 @@ class MultiPartParser:
encoding: Optional[str] = ...,
) -> None: ...
def parse(self) -> Tuple[QueryDict, MultiValueDict]: ...
def handle_file_complete(
self, old_field_name: str, counters: List[int]
) -> None: ...
def handle_file_complete(self, old_field_name: str, counters: List[int]) -> None: ...
def IE_sanitize(self, filename: str) -> str: ...
class LazyStream:
length: None = ...
position: int = ...
def __init__(
self, producer: Union[BoundaryIter, ChunkIter], length: None = ...
) -> None: ...
def __init__(self, producer: Union[BoundaryIter, ChunkIter], length: None = ...) -> None: ...
def tell(self): ...
def read(self, size: Optional[int] = ...) -> bytes: ...
def __next__(self) -> bytes: ...
@@ -39,9 +34,7 @@ class LazyStream:
class ChunkIter:
flo: Union[_io.BytesIO, django.core.handlers.wsgi.WSGIRequest] = ...
chunk_size: int = ...
def __init__(
self, flo: Union[BytesIO, WSGIRequest], chunk_size: int = ...
) -> None: ...
def __init__(self, flo: Union[BytesIO, WSGIRequest], chunk_size: int = ...) -> None: ...
def __next__(self) -> bytes: ...
def __iter__(self): ...
@@ -57,10 +50,4 @@ class BoundaryIter:
class Parser:
def __init__(self, stream: LazyStream, boundary: bytes) -> None: ...
def __iter__(
self
) -> Iterator[
Tuple[
str, Dict[str, Tuple[str, Dict[str, Union[bytes, str]]]], LazyStream
]
]: ...
def __iter__(self) -> Iterator[Tuple[str, Dict[str, Tuple[str, Dict[str, Union[bytes, str]]]], LazyStream]]: ...