[`flake8-annotations`] Make `ANN401` example error out-of-the-box (#18974)

This commit is contained in:
GiGaGon 2025-06-27 00:06:11 -07:00 committed by GitHub
parent 85b2a08b5c
commit e5e3d998c5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 6 additions and 0 deletions

View File

@ -476,12 +476,18 @@ impl Violation for MissingReturnTypeClassMethod {
/// ## Example
///
/// ```python
/// from typing import Any
///
///
/// def foo(x: Any): ...
/// ```
///
/// Use instead:
///
/// ```python
/// from typing import Any
///
///
/// def foo(x: int): ...
/// ```
///