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
@@ -1,11 +1,9 @@
from io import BytesIO
from typing import Any, Dict, Optional, Union
from django.core.files.uploadedfile import (InMemoryUploadedFile,
TemporaryUploadedFile)
from django.core.files.uploadedfile import InMemoryUploadedFile, TemporaryUploadedFile
from django.core.handlers.wsgi import WSGIRequest
class UploadFileException(Exception): ...
class StopUpload(UploadFileException):
@@ -76,11 +74,7 @@ class MemoryFileUploadHandler(FileUploadHandler):
) -> None: ...
file: Any = ...
def new_file(self, *args: Any, **kwargs: Any) -> None: ...
def receive_data_chunk(
self, raw_data: bytes, start: int
) -> Optional[bytes]: ...
def file_complete(
self, file_size: int
) -> Optional[InMemoryUploadedFile]: ...
def receive_data_chunk(self, raw_data: bytes, start: int) -> Optional[bytes]: ...
def file_complete(self, file_size: int) -> Optional[InMemoryUploadedFile]: ...
def load_handler(path: str, *args: Any, **kwargs: Any) -> FileUploadHandler: ...