1871
|
1 from typing import Any
|
|
2
|
|
3 class IDelayedCall:
|
|
4 def getTime(self) -> Any: ...
|
|
5 def cancel(self) -> None: ...
|
|
6 def delay(self, secondsLater: Any) -> None: ...
|
|
7 def reset(self, secondsFromNow: Any) -> None: ...
|
|
8 def active(self) -> None: ...
|
|
9
|
|
10
|
|
11 class IAddress: # this is https://twistedmatrix.com/documents/current/api/twisted.internet.address.IPv4Address.html
|
|
12 type: str
|
|
13 host: str
|
|
14 port: int
|
|
15
|
|
16 class IListeningPort:
|
|
17 def startListening(self): ...
|
|
18 def stopListening(self): ... # returns deferred
|
|
19 def getHost(self) -> IAddress: ...
|
|
20 _realPortNumber: int # from t.i.tcp.Port
|