Mercurial > code > home > repos > rdfdb
diff stubs/twisted/internet/__init__.pyi @ 64:c1a9403e5d21
stubs
Ignore-this: d755514360cce384effcd7a78b4657ed
author | Drew Perttula <drewp@bigasterisk.com> |
---|---|
date | Fri, 31 May 2019 21:39:02 +0000 |
parents | a21b87140758 |
children |
line wrap: on
line diff
--- a/stubs/twisted/internet/__init__.pyi Fri May 31 06:46:41 2019 +0000 +++ b/stubs/twisted/internet/__init__.pyi Fri May 31 21:39:02 2019 +0000 @@ -4,9 +4,11 @@ from typing import Any, Optional from .interfaces import IDelayedCall, IAddress, IListeningPort - +import twisted.internet.protocol + class ReactorType: # abridged - def listenTCP(self, port: Any, factory: Any, backlog: int = ..., interface: str = ...) -> IListeningPort: ... + def listenTCP(self, port: int, factory: twisted.internet.protocol.ServerFactory, backlog: Optional[int] =50, interface: str = ...) -> IListeningPort: ... + def connectTCP(self, host :bytes, port: int, factory: twisted.internet.protocol.ClientFactory, timeout: Optional[float] = 30): ... def seconds(self) -> None: ... def callLater(self, delay: Any, callable: Any, *args: Any, **kw: Any) -> IDelayedCall: ... def getDelayedCalls(self) -> None: ...