massive update, probably broken
[dotfiles/.git] / .config / coc / extensions / node_modules / coc-pyright / node_modules / pyright / dist / typeshed-fallback / stubs / Pillow / PIL / PSDraw.pyi
diff --git a/.config/coc/extensions/node_modules/coc-pyright/node_modules/pyright/dist/typeshed-fallback/stubs/Pillow/PIL/PSDraw.pyi b/.config/coc/extensions/node_modules/coc-pyright/node_modules/pyright/dist/typeshed-fallback/stubs/Pillow/PIL/PSDraw.pyi
new file mode 100644 (file)
index 0000000..2386f28
--- /dev/null
@@ -0,0 +1,19 @@
+from _typeshed import SupportsWrite
+
+from .Image import Image
+
+class PSDraw:
+    fp: SupportsWrite[bytes]
+    def __init__(self, fp: SupportsWrite[bytes] | None = ...) -> None: ...
+    isofont: dict[bytes, int]
+    def begin_document(self, id: object | None = ...) -> None: ...
+    def end_document(self) -> None: ...
+    def setfont(self, font: str, size: int) -> None: ...
+    def line(self, xy0: tuple[int, int], xy1: tuple[int, int]) -> None: ...
+    def rectangle(self, box: tuple[int, int, int, int]) -> None: ...
+    def text(self, xy: tuple[int, int], text: str) -> None: ...
+    def image(self, box: tuple[int, int, int, int], im: Image, dpi: float | None = ...) -> None: ...
+
+EDROFF_PS: bytes
+VDI_PS: bytes
+ERROR_PS: bytes