From b8653a9d3aa08dfc4e820b8c60f871bdb0b51cee Mon Sep 17 00:00:00 2001 From: GiGaGon <107241144+MeGaGiGaGon@users.noreply.github.com> Date: Mon, 30 Jun 2025 23:50:58 -0700 Subject: [PATCH] [`flake8-pyi`] Make `PYI032` example error out-of-the-box (#19061) --- .../src/rules/flake8_pyi/rules/any_eq_ne_annotation.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/crates/ruff_linter/src/rules/flake8_pyi/rules/any_eq_ne_annotation.rs b/crates/ruff_linter/src/rules/flake8_pyi/rules/any_eq_ne_annotation.rs index 89ede8dc94..bebf9aee83 100644 --- a/crates/ruff_linter/src/rules/flake8_pyi/rules/any_eq_ne_annotation.rs +++ b/crates/ruff_linter/src/rules/flake8_pyi/rules/any_eq_ne_annotation.rs @@ -28,8 +28,10 @@ use crate::{AlwaysFixableViolation, Edit, Fix}; /// ## Example /// /// ```pyi +/// from typing import Any +/// /// class Foo: -/// def __eq__(self, obj: typing.Any) -> bool: ... +/// def __eq__(self, obj: Any) -> bool: ... /// ``` /// /// Use instead: