misc_py313 API documentation

# misc_py313

View Source

     1from warnings import deprecated
     2
     3
     4class MyDict(dict):
     5    pass
     6
     7
     8class CustomException(RuntimeError):
     9    """custom exception type"""
    10
    11
    12@deprecated("Do not use this anymore")
    13def deprecated_func():
    14    pass

class MyDict(builtins.dict): View Source

    5class MyDict(dict):
    6    pass

class CustomException(builtins.RuntimeError): View Source

     9class CustomException(RuntimeError):
    10    """custom exception type"""

custom exception type

@deprecated('Do not use this anymore')
def deprecated_func(): View Source

    13@deprecated("Do not use this anymore")
    14def deprecated_func():
    15    pass