Refine stdlib commands module (add mkarg(), mk2arg(), correct get*()) (#1739)

This commit is contained in:
Alex Willmer
2017-11-13 06:44:51 +00:00
committed by Jelle Zijlstra
parent a44de46a00
commit 55f15427bd

View File

@@ -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: ...