move django.core stubs

This commit is contained in:
Maxim Kurnikov
2018-12-21 01:17:17 +03:00
parent b74aa896b5
commit c22e86377d
77 changed files with 1420 additions and 1021 deletions

View File

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