Mercurial > code > home > repos > light9
diff stubs/twisted/python/deprecate.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 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/stubs/twisted/python/deprecate.pyi Sat May 25 12:01:26 2019 +0000 @@ -0,0 +1,32 @@ +# Stubs for twisted.python.deprecate (Python 3) +# +# NOTE: This dynamically typed stub was automatically generated by stubgen. + +from typing import Any, Optional + +def getDeprecationWarningString(callableThing: Any, version: Any, format: Optional[Any] = ..., replacement: Optional[Any] = ...): ... +def deprecated(version: Any, replacement: Optional[Any] = ...): ... +def deprecatedProperty(version: Any, replacement: Optional[Any] = ...): ... +def getWarningMethod(): ... +def setWarningMethod(newMethod: Any) -> None: ... + +class _InternalState: + def __init__(self, proxy: Any) -> None: ... + def __getattribute__(self, name: Any): ... + def __setattr__(self, name: Any, value: Any): ... + +class _ModuleProxy: + def __init__(self, module: Any) -> None: ... + def __setattr__(self, name: Any, value: Any) -> None: ... + def __getattribute__(self, name: Any): ... + +class _DeprecatedAttribute: + module: Any = ... + __name__: Any = ... + fqpn: Any = ... + version: Any = ... + message: Any = ... + def __init__(self, module: Any, name: Any, version: Any, message: Any) -> None: ... + def get(self): ... + +def deprecatedModuleAttribute(version: Any, message: Any, moduleName: Any, name: Any) -> None: ...