mirror of
https://github.com/davidhalter/django-stubs.git
synced 2025-12-09 05:24:53 +08:00
20 lines
406 B
Python
20 lines
406 B
Python
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: ...
|