diff stubs/twisted/internet/__init__.pyi @ 53:a21b87140758

more stubs Ignore-this: ff80b18a86305d43128277f5db0248b5
author Drew Perttula <drewp@bigasterisk.com>
date Thu, 30 May 2019 08:15:10 +0000
parents 4f71d2a7a8d1
children c1a9403e5d21
line wrap: on
line diff
--- a/stubs/twisted/internet/__init__.pyi	Thu May 30 01:58:36 2019 +0000
+++ b/stubs/twisted/internet/__init__.pyi	Thu May 30 08:15:10 2019 +0000
@@ -3,25 +3,7 @@
 # NOTE: This dynamically typed stub was automatically generated by stubgen.
 
 from typing import Any, Optional
-
-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
+from .interfaces import IDelayedCall, IAddress, IListeningPort
     
 class ReactorType: # abridged
     def listenTCP(self, port: Any, factory: Any, backlog: int = ..., interface: str = ...) -> IListeningPort: ...
@@ -43,3 +25,4 @@
     
 
 reactor = ReactorType()
+