mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-01-29 06:12:13 +08:00
subprocess: Improve bytes-related types (#9100)
This commit is contained in:
@@ -3,6 +3,7 @@ import io
|
||||
import logging.handlers
|
||||
import subprocess
|
||||
import time
|
||||
from _typeshed import StrOrBytesPath
|
||||
from collections.abc import Callable, Iterable, Mapping, Sequence
|
||||
from contextlib import AbstractContextManager
|
||||
from email.message import Message
|
||||
@@ -65,7 +66,7 @@ class ShellCommand:
|
||||
wait: bool
|
||||
fail_fast: bool
|
||||
def __init__(
|
||||
self, command: subprocess._CMD, wait: bool = ..., fail_fast: bool = ..., cwd: subprocess._TXT | None = ...
|
||||
self, command: subprocess._CMD, wait: bool = ..., fail_fast: bool = ..., cwd: StrOrBytesPath | None = ...
|
||||
) -> None: ...
|
||||
process: subprocess.Popen[Any]
|
||||
def run(self, cwd: subprocess._CMD | None = ...) -> int | None: ...
|
||||
|
||||
Reference in New Issue
Block a user