|
1 | 1 | from _typeshed import Incomplete, StrPath
|
2 | 2 | from abc import abstractmethod
|
3 | 3 | 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 |
5 | 5 | from typing_extensions import NotRequired
|
6 | 6 |
|
7 | 7 | from ._distutils.cmd import Command as _Command
|
@@ -46,7 +46,8 @@ __all__ = [
|
46 | 46 |
|
47 | 47 | __version__: str
|
48 | 48 |
|
49 |
| -class _Library(TypedDict): |
| 49 | +@type_check_only |
| 50 | +class _BuildInfo(TypedDict): |
50 | 51 | sources: list[str] | tuple[str]
|
51 | 52 | obj_deps: NotRequired[dict[str, list[str] | tuple[str]]]
|
52 | 53 | macros: NotRequired[list[tuple[str, str] | tuple[str]]]
|
@@ -93,7 +94,7 @@ def setup(
|
93 | 94 | command_options: Mapping[str, Mapping[str, tuple[Incomplete, Incomplete]]] = ...,
|
94 | 95 | package_data: Mapping[str, list[str]] = ...,
|
95 | 96 | include_package_data: bool = ...,
|
96 |
| - libraries: list[tuple[str, _Library]] = ..., |
| 97 | + libraries: list[tuple[str, _BuildInfo]] = ..., |
97 | 98 | headers: list[str] = ...,
|
98 | 99 | ext_package: str = ...,
|
99 | 100 | include_dirs: list[str] = ...,
|
|
0 commit comments