5252from .dataclasses import SkipDefaultFieldsReprMixin
5353
5454if t .TYPE_CHECKING :
55- from typing_extensions import TypeAlias
55+ from typing import TypeAlias
5656
5757
5858F = t .TypeVar ("F" , bound = t .Callable [..., t .Any ])
@@ -66,14 +66,11 @@ def __init__(self, output: str, *args: object) -> None:
6666if sys .platform == "win32" :
6767 _ENV : TypeAlias = Mapping [str , str ]
6868else :
69- _ENV : TypeAlias = t .Union [
70- Mapping [bytes , StrOrBytesPath ],
71- Mapping [str , StrOrBytesPath ],
72- ]
73- _FILE : TypeAlias = t .Union [None , int , t .IO [t .Any ]]
74- _TXT : TypeAlias = t .Union [bytes , str ]
69+ _ENV : TypeAlias = Mapping [bytes , StrOrBytesPath ] | Mapping [str , StrOrBytesPath ]
70+ _FILE : TypeAlias = None | int | t .IO [t .Any ]
71+ _TXT : TypeAlias = bytes | str
7572#: Command
76- _CMD : TypeAlias = t . Union [ StrOrBytesPath , Sequence [StrOrBytesPath ] ]
73+ _CMD : TypeAlias = StrOrBytesPath | Sequence [StrOrBytesPath ]
7774
7875
7976@dataclasses .dataclass (repr = False )
@@ -191,8 +188,7 @@ class SubprocessCommand(SkipDefaultFieldsReprMixin):
191188 start_new_session : bool = False
192189 pass_fds : t .Any = ()
193190 umask : int = - 1
194- if sys .version_info >= (3 , 10 ):
195- pipesize : int = - 1
191+ pipesize : int = - 1
196192 user : str | None = None
197193 group : str | None = None
198194 extra_groups : list [str ] | None = None
0 commit comments