File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change 9
9
types-atheris
10
10
types-defusedxml
11
11
types-olefile
12
- types-setuptools
12
+ types-setuptools>=75.2.0
Original file line number Diff line number Diff line change 16
16
import sys
17
17
import warnings
18
18
from collections .abc import Iterator
19
- from typing import Any
19
+ from typing import TYPE_CHECKING , Any
20
20
21
21
from setuptools import Extension , setup
22
22
from setuptools .command .build_ext import build_ext
23
23
24
+ if TYPE_CHECKING :
25
+ from setuptools import _BuildInfo
26
+
24
27
25
28
def get_version () -> str :
26
29
version_file = "src/PIL/_version.py"
@@ -1001,7 +1004,7 @@ def debug_build() -> bool:
1001
1004
return hasattr (sys , "gettotalrefcount" ) or FUZZING_BUILD
1002
1005
1003
1006
1004
- libraries = [
1007
+ libraries : list [ tuple [ str , _BuildInfo ]] = [
1005
1008
("pil_imaging_mode" , {"sources" : ["src/libImaging/Mode.c" ]}),
1006
1009
]
1007
1010
You can’t perform that action at this time.
0 commit comments