Mercurial > code > home > repos > light9
diff stubs/twisted/internet/utils.pyi @ 1882:5c1b662c0263
stub updates
Ignore-this: 1c3a7199c6f2b6e85fd40c2d6bd2613c
author | Drew Perttula <drewp@bigasterisk.com> |
---|---|
date | Tue, 28 May 2019 06:42:27 +0000 |
parents | |
children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/stubs/twisted/internet/utils.pyi Tue May 28 06:42:27 2019 +0000 @@ -0,0 +1,43 @@ +# Stubs for twisted.internet.utils (Python 3) +# +# NOTE: This dynamically typed stub was automatically generated by stubgen. + +from twisted.internet import protocol +from typing import Any, Optional + +class _UnexpectedErrorOutput(IOError): + processEnded: Any = ... + def __init__(self, text: Any, processEnded: Any) -> None: ... + +class _BackRelay(protocol.ProcessProtocol): + deferred: Any = ... + s: Any = ... + errReceived: Any = ... + def __init__(self, deferred: Any, errortoo: int = ...) -> None: ... + onProcessEnded: Any = ... + def errReceivedIsBad(self, text: Any) -> None: ... + def errReceivedIsGood(self, text: Any) -> None: ... + def outReceived(self, text: Any) -> None: ... + def processEnded(self, reason: Any) -> None: ... + +def getProcessOutput(executable: Any, args: Any = ..., env: Any = ..., path: Optional[Any] = ..., reactor: Optional[Any] = ..., errortoo: int = ...): ... + +class _ValueGetter(protocol.ProcessProtocol): + deferred: Any = ... + def __init__(self, deferred: Any) -> None: ... + def processEnded(self, reason: Any) -> None: ... + +def getProcessValue(executable: Any, args: Any = ..., env: Any = ..., path: Optional[Any] = ..., reactor: Optional[Any] = ...): ... + +class _EverythingGetter(protocol.ProcessProtocol): + deferred: Any = ... + outBuf: Any = ... + errBuf: Any = ... + outReceived: Any = ... + errReceived: Any = ... + def __init__(self, deferred: Any) -> None: ... + def processEnded(self, reason: Any) -> None: ... + +def getProcessOutputAndValue(executable: Any, args: Any = ..., env: Any = ..., path: Optional[Any] = ..., reactor: Optional[Any] = ...): ... +def runWithWarningsSuppressed(suppressedWarnings: Any, f: Any, *a: Any, **kw: Any): ... +def suppressWarnings(f: Any, *suppressedWarnings: Any): ...