mirror of
https://github.com/davidhalter/django-stubs.git
synced 2025-12-20 19:01:16 +08:00
fixes for ci imports failures
This commit is contained in:
@@ -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: ...
|
||||
|
||||
Reference in New Issue
Block a user