update schema
This commit is contained in:
committed by
David Peter
parent
ea1ac07e3b
commit
b1fde6a067
10
ty.schema.json
generated
10
ty.schema.json
generated
@@ -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```",
|
||||
|
||||
Reference in New Issue
Block a user