diff --git a/ty.schema.json b/ty.schema.json index 701462f4d5..ee36857508 100644 --- a/ty.schema.json +++ b/ty.schema.json @@ -331,6 +331,16 @@ } ] }, + "deprecated": { + "title": "detects uses of deprecated items", + "description": "## What it does\nChecks for uses of deprecated items\n\n## Why is this bad?\nDeprecated items should no longer be used.\n\n## Examples\n```python\n@warnings.deprecated(\"use new_func instead\")\ndef old_func(): ...\n\nold_func()\n```", + "default": "warn", + "oneOf": [ + { + "$ref": "#/definitions/Level" + } + ] + }, "division-by-zero": { "title": "detects division by zero", "description": "## What it does\nIt detects division by zero.\n\n## Why is this bad?\nDividing by zero raises a `ZeroDivisionError` at runtime.\n\n## Examples\n```python\n5 / 0\n```",