Glossary: Refactoring and Clean Code
DeprecationWarning
Also written: warnings.warn
A Python warning category that tells callers a name or feature is outdated. Calling `warnings.warn(..., DeprecationWarning)` inside an old alias such as `run` makes its callers see the warning.