| 1 |
from __future__ import annotations |
| 2 |
|
| 3 |
import collections.abc |
| 4 |
import os |
| 5 |
import typing |
| 6 |
|
| 7 |
|
| 8 |
__all__ = ['ConfigSettings', 'Distribution', 'StrPath', 'SubprocessRunner'] |
| 9 |
|
| 10 |
ConfigSettings = collections.abc.Mapping[str, str | collections.abc.Sequence[str]] |
| 11 |
Distribution = typing.Literal['sdist', 'wheel', 'editable'] |
| 12 |
|
| 13 |
StrPath = str | os.PathLike[str] |
| 14 |
|
| 15 |
TYPE_CHECKING = False |
| 16 |
|
| 17 |
if TYPE_CHECKING: |
| 18 |
from pyproject_hooks import SubprocessRunner |
| 19 |
else: |
| 20 |
SubprocessRunner = collections.abc.Callable[ |
| 21 |
[collections.abc.Sequence[str], str | None, collections.abc.Mapping[str, str] | None], None |
| 22 |
] |