view stubs/twisted/python/deprecate.pyi @ 59:dbf47ed931d9

str bug in /live input socket, which maybe is never used Ignore-this: 2e61e88861150c79b1166e5f2d65b2f1
author Drew Perttula <drewp@bigasterisk.com>
date Thu, 30 May 2019 08:37:14 +0000
parents 4f71d2a7a8d1
children
line wrap: on
line source

# 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: ...