Skip to content

Commit 42c8e23

Browse files
committed
Create dummy PixelAccess stub
1 parent b1cb9c8 commit 42c8e23

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

stubs/Pillow/PIL/_imaging.pyi

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,12 @@ HUFFMAN_ONLY: Literal[2]
88
RLE: Literal[3]
99
FIXED: Literal[4]
1010

11+
class PixelAccess:
12+
# As well as the C extension source, this is also documented at
13+
# Pillow's docs/reference/PixelAccess.rst, e.g.
14+
# https://github.com/python-pillow/Pillow/blob/main/docs/reference/PixelAccess.rst
15+
def __getattr__(self, item: str) -> Incomplete: ...
16+
1117
class _Path:
1218
def __getattr__(self, item: str) -> Incomplete: ...
1319

0 commit comments

Comments
 (0)