_imaging.pyi 816 B

123456789101112131415161718192021222324252627282930
  1. from typing import Any
  2. class ImagingCore:
  3. def __getattr__(self, name: str) -> Any: ...
  4. class ImagingFont:
  5. def __getattr__(self, name: str) -> Any: ...
  6. class ImagingDraw:
  7. def __getattr__(self, name: str) -> Any: ...
  8. class PixelAccess:
  9. def __getitem__(self, xy: tuple[int, int]) -> float | tuple[int, ...]: ...
  10. def __setitem__(
  11. self, xy: tuple[int, int], color: float | tuple[int, ...]
  12. ) -> None: ...
  13. class ImagingDecoder:
  14. def __getattr__(self, name: str) -> Any: ...
  15. class ImagingEncoder:
  16. def __getattr__(self, name: str) -> Any: ...
  17. class _Outline:
  18. def close(self) -> None: ...
  19. def __getattr__(self, name: str) -> Any: ...
  20. def font(image: ImagingCore, glyphdata: bytes) -> ImagingFont: ...
  21. def outline() -> _Outline: ...
  22. def __getattr__(name: str) -> Any: ...