mirror of
https://github.com/davidhalter/django-stubs.git
synced 2025-12-17 17:35:59 +08:00
15 lines
326 B
Python
15 lines
326 B
Python
from io import BytesIO
|
|
from typing import Any, Union
|
|
|
|
from django.core.files import File
|
|
|
|
class ImageFile(File):
|
|
mode: str
|
|
name: str
|
|
@property
|
|
def width(self) -> int: ...
|
|
@property
|
|
def height(self) -> int: ...
|
|
|
|
def get_image_dimensions(file_or_path: Union[BytesIO, str], close: bool = ...) -> Any: ...
|