refactor: Use future warnings.deprecated
decorator
#2647
Merged
warnings.deprecated
decorator
#2647