massive update, probably broken
[dotfiles/.git] / .config / coc / extensions / node_modules / coc-pyright / node_modules / pyright / dist / typeshed-fallback / stubs / Pillow / PIL / ImageShow.pyi
1 from typing import Any
2
3 def register(viewer, order: int = ...) -> None: ...
4 def show(image, title: Any | None = ..., **options): ...
5
6 class Viewer:
7     def show(self, image, **options): ...
8     format: Any
9     options: Any
10     def get_format(self, image): ...
11     def get_command(self, file, **options) -> None: ...
12     def save_image(self, image): ...
13     def show_image(self, image, **options): ...
14     def show_file(self, file, **options): ...
15
16 class WindowsViewer(Viewer):
17     format: str
18     options: Any
19     def get_command(self, file, **options): ...
20
21 class MacViewer(Viewer):
22     format: str
23     options: Any
24     def get_command(self, file, **options): ...
25     def show_file(self, file, **options): ...
26
27 class UnixViewer(Viewer):
28     format: str
29     options: Any
30     def get_command(self, file, **options): ...
31     def show_file(self, file, **options): ...
32
33 class DisplayViewer(UnixViewer):
34     def get_command_ex(self, file, **options): ...
35
36 class GmDisplayViewer(UnixViewer):
37     def get_command_ex(self, file, **options): ...
38
39 class EogViewer(UnixViewer):
40     def get_command_ex(self, file, **options): ...
41
42 class XVViewer(UnixViewer):
43     def get_command_ex(self, file, title: Any | None = ..., **options): ...
44
45 class IPythonViewer(Viewer):
46     def show_image(self, image, **options): ...