# Stubs for PIL.ImageFile (Python 3) # # NOTE: This dynamically typed stub was automatically generated by stubgen. from PIL import Image from typing import Any, Optional MAXBLOCK: int SAFEBLOCK: Any LOAD_TRUNCATED_IMAGES: bool ERRORS: Any def raise_ioerror(error: Any) -> None: ... class ImageFile(Image.Image): tile: Any = ... readonly: int = ... decoderconfig: Any = ... decodermaxblock: Any = ... fp: Any = ... filename: Any = ... def __init__(self, fp: Optional[Any] = ..., filename: Optional[Any] = ...) -> None: ... def draft(self, mode: Any, size: Any) -> None: ... def verify(self) -> None: ... map: Any = ... im: Any = ... def load(self): ... def load_prepare(self) -> None: ... def load_end(self) -> None: ... class StubImageFile(ImageFile): __class__: Any = ... __dict__: Any = ... def load(self) -> None: ... class Parser: incremental: Any = ... image: Any = ... data: Any = ... decoder: Any = ... offset: int = ... finished: int = ... def reset(self) -> None: ... decode: Any = ... def feed(self, data: Any) -> None: ... def close(self): ...