Mercurial > code > home > repos > light9
comparison stubs/twisted/python/components.pyi @ 1863:0f0ff27e55a3
stubs, mostly autogen or empty
Ignore-this: bc70818d2bc92bf022c65c3572b9775e
author | Drew Perttula <drewp@bigasterisk.com> |
---|---|
date | Sat, 25 May 2019 12:01:26 +0000 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
1862:d92757c88817 | 1863:0f0ff27e55a3 |
---|---|
1 # Stubs for twisted.python.components (Python 3) | |
2 # | |
3 # NOTE: This dynamically typed stub was automatically generated by stubgen. | |
4 | |
5 from typing import Any, Optional | |
6 | |
7 def registerAdapter(adapterFactory: Any, origInterface: Any, *interfaceClasses: Any) -> None: ... | |
8 def getAdapterFactory(fromInterface: Any, toInterface: Any, default: Any): ... | |
9 def getRegistry(): ... | |
10 CannotAdapt = TypeError | |
11 | |
12 class Adapter: | |
13 temporaryAdapter: int = ... | |
14 multiComponent: int = ... | |
15 original: Any = ... | |
16 def __init__(self, original: Any) -> None: ... | |
17 def __conform__(self, interface: Any): ... | |
18 def isuper(self, iface: Any, adapter: Any): ... | |
19 | |
20 class Componentized: | |
21 persistenceVersion: int = ... | |
22 def __init__(self) -> None: ... | |
23 def locateAdapterClass(self, klass: Any, interfaceClass: Any, default: Any): ... | |
24 def setAdapter(self, interfaceClass: Any, adapterClass: Any) -> None: ... | |
25 def addAdapter(self, adapterClass: Any, ignoreClass: int = ...): ... | |
26 def setComponent(self, interfaceClass: Any, component: Any) -> None: ... | |
27 def addComponent(self, component: Any, ignoreClass: int = ...) -> None: ... | |
28 def unsetComponent(self, interfaceClass: Any) -> None: ... | |
29 def removeComponent(self, component: Any): ... | |
30 def getComponent(self, interface: Any, default: Optional[Any] = ...): ... | |
31 def __conform__(self, interface: Any): ... | |
32 | |
33 class ReprableComponentized(Componentized): | |
34 def __init__(self) -> None: ... | |
35 | |
36 def proxyForInterface(iface: Any, originalAttribute: str = ...): ... | |
37 | |
38 class _ProxiedClassMethod: | |
39 methodName: Any = ... | |
40 originalAttribute: Any = ... | |
41 def __init__(self, methodName: Any, originalAttribute: Any) -> None: ... | |
42 def __call__(self, oself: Any, *args: Any, **kw: Any): ... | |
43 | |
44 class _ProxyDescriptor: | |
45 attributeName: Any = ... | |
46 originalAttribute: Any = ... | |
47 def __init__(self, attributeName: Any, originalAttribute: Any) -> None: ... | |
48 def __get__(self, oself: Any, type: Optional[Any] = ...): ... | |
49 def __set__(self, oself: Any, value: Any) -> None: ... | |
50 def __delete__(self, oself: Any) -> None: ... |