mirror of
https://github.com/astral-sh/ruff.git
synced 2026-11-23 01:50:49 +08:00
316 B
316 B
What it does
Checks for uses of deprecated items
Why is this bad?
Deprecated items should no longer be used.
Examples
[environment]
python-version = "3.13"
import warnings
@warnings.deprecated("use new_func instead")
def old_func(): ...
old_func() # error: [deprecated]