mirror of
https://github.com/astral-sh/ruff.git
synced 2025-08-03 02:12:22 +00:00
[ty] Add subdiagnostic about empty bodies in more cases (#18942)
This commit is contained in:
parent
5d546c600a
commit
c77e72ea1a
2 changed files with 5 additions and 4 deletions
|
@ -93,6 +93,7 @@ error[invalid-return-type]: Function always implicitly returns `None`, which is
|
|||
| ^
|
||||
|
|
||||
info: Consider changing the return annotation to `-> None` or adding a `return` statement
|
||||
info: Only functions in stub files, methods on protocol classes, or methods with `@abstractmethod` are permitted to have empty bodies
|
||||
info: rule `invalid-return-type` is enabled by default
|
||||
|
||||
```
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue