annotate stubs/twisted/python/components.pyi @ 2056:be860a233793

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