I am using code similar to
from warnings import deprecated
@deprecated
def test():
print("test")
test()
I am getting an error (python 3.11) with "cannot load deprecated from warnings" and I was wondering if anybody knows why that is.
I noticed that warnings.py does infact have that class
AFAIK, this new decorator is only available for python 3.13 right now.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With