# HG changeset patch # User Drew Perttula # Date 1558998444 0 # Node ID 101e0e455e8ff51145f763d73166de89605ddc0d # Parent 7c3cd440619bc8c6051c1ad3909d272213bdc3b0 stubs Ignore-this: 42f270f3b817541e2b87a7b0b234ccf1 diff -r 7c3cd440619b -r 101e0e455e8f stubs/twisted/internet/interfaces.pyi --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/stubs/twisted/internet/interfaces.pyi Mon May 27 23:07:24 2019 +0000 @@ -0,0 +1,20 @@ +from typing import Any + +class IDelayedCall: + def getTime(self) -> Any: ... + def cancel(self) -> None: ... + def delay(self, secondsLater: Any) -> None: ... + def reset(self, secondsFromNow: Any) -> None: ... + def active(self) -> None: ... + + +class IAddress: # this is https://twistedmatrix.com/documents/current/api/twisted.internet.address.IPv4Address.html + type: str + host: str + port: int + +class IListeningPort: + def startListening(self): ... + def stopListening(self): ... # returns deferred + def getHost(self) -> IAddress: ... + _realPortNumber: int # from t.i.tcp.Port