diff stubs/PIL/ImageFile.pyi @ 1947:3b2255e3576d

big stubgen run for PIL, moviepy, rx Ignore-this: 349c755d8d70fdd1ff5711bde41f1dcb
author Drew Perttula <drewp@bigasterisk.com>
date Wed, 05 Jun 2019 23:14:49 +0000
parents
children
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/stubs/PIL/ImageFile.pyi	Wed Jun 05 23:14:49 2019 +0000
@@ -0,0 +1,46 @@
+# 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): ...