view stubs/twisted/python/deprecate.pyi @ 2328:d050b8efda9d

fix bug with uninitialized effect ,and prefer a dead effect over a graph reload
author drewp@bigasterisk.com
date Thu, 01 Jun 2023 18:42:36 -0700
parents 0f0ff27e55a3
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: ...