massive update, probably broken
[dotfiles/.git] / .config / coc / extensions / node_modules / coc-pyright / node_modules / pyright / dist / typeshed-fallback / stubs / Pillow / PIL / ImageShow.pyi
diff --git a/.config/coc/extensions/node_modules/coc-pyright/node_modules/pyright/dist/typeshed-fallback/stubs/Pillow/PIL/ImageShow.pyi b/.config/coc/extensions/node_modules/coc-pyright/node_modules/pyright/dist/typeshed-fallback/stubs/Pillow/PIL/ImageShow.pyi
new file mode 100644 (file)
index 0000000..27daf3f
--- /dev/null
@@ -0,0 +1,46 @@
+from typing import Any
+
+def register(viewer, order: int = ...) -> None: ...
+def show(image, title: Any | None = ..., **options): ...
+
+class Viewer:
+    def show(self, image, **options): ...
+    format: Any
+    options: Any
+    def get_format(self, image): ...
+    def get_command(self, file, **options) -> None: ...
+    def save_image(self, image): ...
+    def show_image(self, image, **options): ...
+    def show_file(self, file, **options): ...
+
+class WindowsViewer(Viewer):
+    format: str
+    options: Any
+    def get_command(self, file, **options): ...
+
+class MacViewer(Viewer):
+    format: str
+    options: Any
+    def get_command(self, file, **options): ...
+    def show_file(self, file, **options): ...
+
+class UnixViewer(Viewer):
+    format: str
+    options: Any
+    def get_command(self, file, **options): ...
+    def show_file(self, file, **options): ...
+
+class DisplayViewer(UnixViewer):
+    def get_command_ex(self, file, **options): ...
+
+class GmDisplayViewer(UnixViewer):
+    def get_command_ex(self, file, **options): ...
+
+class EogViewer(UnixViewer):
+    def get_command_ex(self, file, **options): ...
+
+class XVViewer(UnixViewer):
+    def get_command_ex(self, file, title: Any | None = ..., **options): ...
+
+class IPythonViewer(Viewer):
+    def show_image(self, image, **options): ...