60
60
from .dataclasses import SkipDefaultFieldsReprMixin
61
61
62
62
if TYPE_CHECKING :
63
+ from _typeshed import ReadableBuffer
63
64
from typing_extensions import TypeAlias
64
65
65
66
@@ -79,7 +80,7 @@ def __init__(self, output: str, *args: object) -> None:
79
80
Mapping [str , StrOrBytesPath ],
80
81
]
81
82
_FILE : "TypeAlias" = Union [None , int , IO [Any ]]
82
- _TXT : "TypeAlias" = Union [bytes , str ]
83
+ _InputString : "TypeAlias" = Union ["ReadableBuffer" , str ]
83
84
#: Command
84
85
_CMD : "TypeAlias" = Union [StrOrBytesPath , Sequence [StrOrBytesPath ]]
85
86
@@ -438,7 +439,7 @@ def run(
438
439
check : bool = ...,
439
440
encoding : Optional [str ] = ...,
440
441
errors : Optional [str ] = ...,
441
- input : Optional [str ] = ...,
442
+ input : Optional ["_InputString" ] = ...,
442
443
text : Literal [True ],
443
444
) -> subprocess .CompletedProcess [str ]: ...
444
445
@@ -451,7 +452,7 @@ def run(
451
452
check : bool = ...,
452
453
encoding : str ,
453
454
errors : Optional [str ] = ...,
454
- input : Optional [str ] = ...,
455
+ input : Optional ["_InputString" ] = ...,
455
456
text : Optional [bool ] = ...,
456
457
) -> subprocess .CompletedProcess [str ]: ...
457
458
@@ -464,7 +465,7 @@ def run(
464
465
check : bool = ...,
465
466
encoding : Optional [str ] = ...,
466
467
errors : str ,
467
- input : Optional [str ] = ...,
468
+ input : Optional ["_InputString" ] = ...,
468
469
text : Optional [bool ] = ...,
469
470
) -> subprocess .CompletedProcess [str ]: ...
470
471
@@ -478,7 +479,7 @@ def run(
478
479
check : bool = ...,
479
480
encoding : Optional [str ] = ...,
480
481
errors : Optional [str ] = ...,
481
- input : Optional [str ] = ...,
482
+ input : Optional ["_InputString" ] = ...,
482
483
text : Optional [bool ] = ...,
483
484
) -> subprocess .CompletedProcess [str ]: ...
484
485
@@ -491,7 +492,7 @@ def run(
491
492
check : bool = ...,
492
493
encoding : None = ...,
493
494
errors : None = ...,
494
- input : Optional [bytes ] = ...,
495
+ input : Optional ["ReadableBuffer" ] = ...,
495
496
text : Literal [None , False ] = ...,
496
497
) -> subprocess .CompletedProcess [bytes ]: ...
497
498
@@ -503,7 +504,7 @@ def run(
503
504
check : bool = False ,
504
505
encoding : Optional [str ] = None ,
505
506
errors : Optional [str ] = None ,
506
- input : Optional [Union [str , bytes ]] = None ,
507
+ input : Optional [Union ["_InputString" , "ReadableBuffer" ]] = None ,
507
508
text : Optional [bool ] = None ,
508
509
timeout : Optional [float ] = None ,
509
510
** kwargs : Any ,
0 commit comments