Files
cibuildwheel/cibuildwheel/typing.py
T

12 lines
261 B
Python
Raw Normal View History

from typing import Union, TYPE_CHECKING
import os
import subprocess
if TYPE_CHECKING:
PopenBytes = subprocess.Popen[bytes]
PathOrStr = Union[str, os.PathLike[str]]
else:
PopenBytes = subprocess.Popen
PathOrStr = Union[str, "os.PathLike[str]"]