2021-01-02 14:32:55 -05:00
|
|
|
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]"]
|