Method
__init__
(self,
iface=None, # type: Optional[str]
filter=None, # type: Optional[Any]
socket=None, # type: Optional[SuperSocket]
name=None, # type: Optional[Any]
)
Source from the content-addressed store, hash-verified
| 47 | """ |
| 48 | |
| 49 | def __init__(self, |
| 50 | iface=None, # type: Optional[str] |
| 51 | filter=None, # type: Optional[Any] |
| 52 | socket=None, # type: Optional[SuperSocket] |
| 53 | name=None, # type: Optional[Any] |
| 54 | ): |
| 55 | # type: (...) -> None |
| 56 | Source.__init__(self, name=name) |
| 57 | |
| 58 | if (iface or filter) and socket: |
| 59 | raise ValueError("iface and filter options are mutually exclusive " |
| 60 | "with socket") |
| 61 | |
| 62 | self.s = cast(SuperSocket, socket) |
| 63 | self.iface = iface |
| 64 | self.filter = filter |
| 65 | |
| 66 | def start(self): |
| 67 | # type: () -> None |
Callers
nothing calls this directly
Tested by
no test coverage detected