[ty] Add subdiagnostic about empty bodies in more cases (#18942)

This commit is contained in:
Alex Waygood 2025-06-25 20:25:00 +01:00 committed by GitHub
parent 5d546c600a
commit c77e72ea1a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 5 additions and 4 deletions

View file

@ -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
```