From b1fde6a067e46aaf1cd3dcccaf8a453280586e93 Mon Sep 17 00:00:00 2001 From: Aria Desires Date: Thu, 17 Jul 2025 13:30:04 -0400 Subject: [PATCH] update schema --- ty.schema.json | 10 ++++++++++ 1 file changed, 10 insertions(+) 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```",