From 8a9dcb1967b99600ced8eb4fa6c07df686d09697 Mon Sep 17 00:00:00 2001 From: Alex Waygood Date: Tue, 12 Mar 2024 22:04:57 +0000 Subject: [PATCH] Make stubtest work on pyscreeze if you're using py312 (#11582) --- stubs/PyScreeze/METADATA.toml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/stubs/PyScreeze/METADATA.toml b/stubs/PyScreeze/METADATA.toml index aaf892106..885ff5b82 100644 --- a/stubs/PyScreeze/METADATA.toml +++ b/stubs/PyScreeze/METADATA.toml @@ -5,3 +5,7 @@ requires = ["types-Pillow"] [tool.stubtest] # Linux has extra constants, win32 has different definitions platforms = ["linux", "win32"] +# PyScreeze has an odd setup.py file +# that doesn't list Pillow as a dependency for py312+ yet: +# https://github.com/asweigart/pyscreeze/blob/eeca245a135cf171c163b3691300138518efa64e/setup.py#L38-L46 +stubtest_requirements = ["Pillow"]