mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-19 18:31:14 +08:00
Improve fpdf.image_parsing (#6313)
* Annotate more attributes, arguments, and return types. * Add "dims" argument to get_img_info(), added in 2.4.6.
This commit is contained in:
@@ -1,6 +1,11 @@
|
||||
from typing import Any
|
||||
from typing import Any, Tuple
|
||||
from typing_extensions import Literal
|
||||
|
||||
SUPPORTED_IMAGE_FILTERS: Any
|
||||
_ImageFilter = Literal["AUTO", "FlateDecode", "DCTDecode", "JPXDecode"]
|
||||
|
||||
SUPPORTED_IMAGE_FILTERS: Tuple[_ImageFilter, ...]
|
||||
|
||||
def load_image(filename): ...
|
||||
def get_img_info(img, image_filter: str = ...): ...
|
||||
|
||||
# Returned dict could be typed as a TypedDict.
|
||||
def get_img_info(img, image_filter: _ImageFilter = ..., dims: Any | None = ...) -> dict[str, Any]: ...
|
||||
|
||||
Reference in New Issue
Block a user