misc_py313

 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):
5class MyDict(dict):
6    pass
class CustomException(builtins.RuntimeError):
 9class CustomException(RuntimeError):
10    """custom exception type"""

custom exception type

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