mirror of
https://github.com/davidhalter/django-stubs.git
synced 2026-05-11 09:08:28 +08:00
run black over stubs, add checking to travis
This commit is contained in:
@@ -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: ...
|
||||
|
||||
Reference in New Issue
Block a user