diff stubs/twisted/python/components.pyi @ 33:4f71d2a7a8d1

some low-quality mostly generated mypy stubs. should be shared with my other builds Ignore-this: 99c013ca3860da8917b3ca52c24308fc
author Drew Perttula <drewp@bigasterisk.com>
date Sat, 25 May 2019 02:53:14 +0000
parents
children
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/stubs/twisted/python/components.pyi	Sat May 25 02:53:14 2019 +0000
@@ -0,0 +1,50 @@
+# Stubs for twisted.python.components (Python 3)
+#
+# NOTE: This dynamically typed stub was automatically generated by stubgen.
+
+from typing import Any, Optional
+
+def registerAdapter(adapterFactory: Any, origInterface: Any, *interfaceClasses: Any) -> None: ...
+def getAdapterFactory(fromInterface: Any, toInterface: Any, default: Any): ...
+def getRegistry(): ...
+CannotAdapt = TypeError
+
+class Adapter:
+    temporaryAdapter: int = ...
+    multiComponent: int = ...
+    original: Any = ...
+    def __init__(self, original: Any) -> None: ...
+    def __conform__(self, interface: Any): ...
+    def isuper(self, iface: Any, adapter: Any): ...
+
+class Componentized:
+    persistenceVersion: int = ...
+    def __init__(self) -> None: ...
+    def locateAdapterClass(self, klass: Any, interfaceClass: Any, default: Any): ...
+    def setAdapter(self, interfaceClass: Any, adapterClass: Any) -> None: ...
+    def addAdapter(self, adapterClass: Any, ignoreClass: int = ...): ...
+    def setComponent(self, interfaceClass: Any, component: Any) -> None: ...
+    def addComponent(self, component: Any, ignoreClass: int = ...) -> None: ...
+    def unsetComponent(self, interfaceClass: Any) -> None: ...
+    def removeComponent(self, component: Any): ...
+    def getComponent(self, interface: Any, default: Optional[Any] = ...): ...
+    def __conform__(self, interface: Any): ...
+
+class ReprableComponentized(Componentized):
+    def __init__(self) -> None: ...
+
+def proxyForInterface(iface: Any, originalAttribute: str = ...): ...
+
+class _ProxiedClassMethod:
+    methodName: Any = ...
+    originalAttribute: Any = ...
+    def __init__(self, methodName: Any, originalAttribute: Any) -> None: ...
+    def __call__(self, oself: Any, *args: Any, **kw: Any): ...
+
+class _ProxyDescriptor:
+    attributeName: Any = ...
+    originalAttribute: Any = ...
+    def __init__(self, attributeName: Any, originalAttribute: Any) -> None: ...
+    def __get__(self, oself: Any, type: Optional[Any] = ...): ...
+    def __set__(self, oself: Any, value: Any) -> None: ...
+    def __delete__(self, oself: Any) -> None: ...