mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-07 12:44:28 +08:00
Refine stdlib commands module (add mkarg(), mk2arg(), correct get*()) (#1739)
This commit is contained in:
committed by
Jelle Zijlstra
parent
a44de46a00
commit
55f15427bd
@@ -1,5 +1,12 @@
|
||||
from typing import Tuple
|
||||
from typing import overload, AnyStr, Text, Tuple
|
||||
|
||||
def getstatus(file: str) -> str: ...
|
||||
def getoutput(cmd: str) -> str: ...
|
||||
def getstatusoutput(cmd: str) -> Tuple[int, str]: ...
|
||||
def getstatus(file: Text) -> str: ...
|
||||
def getoutput(cmd: Text) -> str: ...
|
||||
def getstatusoutput(cmd: Text) -> Tuple[int, str]: ...
|
||||
|
||||
@overload
|
||||
def mk2arg(head: bytes, x: bytes) -> bytes: ...
|
||||
@overload
|
||||
def mk2arg(head: Text, x: Text) -> Text: ...
|
||||
|
||||
def mkarg(x: AnyStr) -> AnyStr: ...
|
||||
|
||||
Reference in New Issue
Block a user