view stubs/twisted/internet/interfaces.pyi @ 2019:a6045f11198d

don't show a misleading TL cursor when we're viewing a song that's not the playing one Ignore-this: 33928b4331aa09f2191b6d45e4e163a
author drewp@bigasterisk.com
date Mon, 10 Jun 2019 23:22:06 +0000
parents 4ce991cdacdb
children
line wrap: on
line source

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