_imaging.pyi 868 B

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