diff --git a/crates/ty_python_semantic/src/types/diagnostic.rs b/crates/ty_python_semantic/src/types/diagnostic.rs index e3bc4d755d..1266e62ef2 100644 --- a/crates/ty_python_semantic/src/types/diagnostic.rs +++ b/crates/ty_python_semantic/src/types/diagnostic.rs @@ -1636,7 +1636,7 @@ declare_lint! { /// def foo(self): ... # Error raised here /// ``` pub(crate) static OVERRIDE_OF_FINAL_METHOD = { - summary: "detects subclasses of final classes", + summary: "detects overrides of final methods", status: LintStatus::stable("0.0.1-alpha.29"), default_level: Level::Error, } diff --git a/ty.schema.json b/ty.schema.json index 8a19ce44cf..38d5fd1326 100644 --- a/ty.schema.json +++ b/ty.schema.json @@ -864,7 +864,7 @@ ] }, "override-of-final-method": { - "title": "detects subclasses of final classes", + "title": "detects overrides of final methods", "description": "## What it does\nChecks for methods on subclasses that override superclass methods decorated with `@final`.\n\n## Why is this bad?\nDecorating a method with `@final` declares to the type checker that it should not be\noverridden on any subclass.\n\n## Example\n\n```python\nfrom typing import final\n\nclass A:\n @final\n def foo(self): ...\n\nclass B(A):\n def foo(self): ... # Error raised here\n```", "default": "error", "oneOf": [