Skip to content

Commit f0d929f

Browse files
committed
Address feedback
1 parent 1e6ccf1 commit f0d929f

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

stubs/setuptools/setuptools/__init__.pyi

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
from _typeshed import Incomplete, StrPath
22
from abc import abstractmethod
33
from collections.abc import Iterable, Mapping, Sequence
4-
from typing import Any, Literal, TypedDict, TypeVar, overload
4+
from typing import Any, Literal, TypedDict, TypeVar, overload, type_check_only
55
from typing_extensions import NotRequired
66

77
from ._distutils.cmd import Command as _Command
@@ -46,7 +46,8 @@ __all__ = [
4646

4747
__version__: str
4848

49-
class _Library(TypedDict):
49+
@type_check_only
50+
class _BuildInfo(TypedDict):
5051
sources: list[str] | tuple[str]
5152
obj_deps: NotRequired[dict[str, list[str] | tuple[str]]]
5253
macros: NotRequired[list[tuple[str, str] | tuple[str]]]
@@ -93,7 +94,7 @@ def setup(
9394
command_options: Mapping[str, Mapping[str, tuple[Incomplete, Incomplete]]] = ...,
9495
package_data: Mapping[str, list[str]] = ...,
9596
include_package_data: bool = ...,
96-
libraries: list[tuple[str, _Library]] = ...,
97+
libraries: list[tuple[str, _BuildInfo]] = ...,
9798
headers: list[str] = ...,
9899
ext_package: str = ...,
99100
include_dirs: list[str] = ...,

0 commit comments

Comments
 (0)