fixes for ci imports failures

This commit is contained in:
Maxim Kurnikov
2019-01-06 21:00:01 +03:00
parent 5ba0bbe0b7
commit 98e60d084f
84 changed files with 449 additions and 1383 deletions

View File

@@ -1,10 +1,9 @@
from io import BufferedReader, BytesIO
from io import BytesIO
from typing import Any, Union
from django.core.files import File
class ImageFile(File):
file: BufferedReader
mode: str
name: str
@property
@@ -12,4 +11,4 @@ class ImageFile(File):
@property
def height(self) -> int: ...
def get_image_dimensions(file_or_path: Union[BufferedReader, BytesIO, ImageFile, str], close: bool = ...) -> Any: ...
def get_image_dimensions(file_or_path: Union[BytesIO, str], close: bool = ...) -> Any: ...