From 42c8e231b30de14cfc4831656927221c6359db6a Mon Sep 17 00:00:00 2001 From: David Robertson Date: Fri, 6 Jan 2023 17:04:43 +0000 Subject: [PATCH] Create dummy PixelAccess stub --- stubs/Pillow/PIL/_imaging.pyi | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/stubs/Pillow/PIL/_imaging.pyi b/stubs/Pillow/PIL/_imaging.pyi index b9435b8fe506..5b396e10ead8 100644 --- a/stubs/Pillow/PIL/_imaging.pyi +++ b/stubs/Pillow/PIL/_imaging.pyi @@ -8,6 +8,12 @@ HUFFMAN_ONLY: Literal[2] RLE: Literal[3] FIXED: Literal[4] +class PixelAccess: + # As well as the C extension source, this is also documented at + # Pillow's docs/reference/PixelAccess.rst, e.g. + # https://github.com/python-pillow/Pillow/blob/main/docs/reference/PixelAccess.rst + def __getattr__(self, item: str) -> Incomplete: ... + class _Path: def __getattr__(self, item: str) -> Incomplete: ...