From d0f0577ac76b9df8637e84ff5295688b645c7ddf Mon Sep 17 00:00:00 2001 From: GiGaGon <107241144+MeGaGiGaGon@users.noreply.github.com> Date: Thu, 3 Jul 2025 04:54:35 -0700 Subject: [PATCH] [`flake8-pyi`] Make example error out-of-the-box (`PYI014`, `PYI015`) (#19097) --- .../ruff_linter/src/rules/flake8_pyi/rules/simple_defaults.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/ruff_linter/src/rules/flake8_pyi/rules/simple_defaults.rs b/crates/ruff_linter/src/rules/flake8_pyi/rules/simple_defaults.rs index 93498e8b16..32059594db 100644 --- a/crates/ruff_linter/src/rules/flake8_pyi/rules/simple_defaults.rs +++ b/crates/ruff_linter/src/rules/flake8_pyi/rules/simple_defaults.rs @@ -75,7 +75,7 @@ impl AlwaysFixableViolation for TypedArgumentDefaultInStub { /// ## Example /// /// ```pyi -/// def foo(arg=[]) -> None: ... +/// def foo(arg=bar()) -> None: ... /// ``` /// /// Use instead: @@ -120,7 +120,7 @@ impl AlwaysFixableViolation for ArgumentDefaultInStub { /// /// ## Example /// ```pyi -/// foo: str = "..." +/// foo: str = bar() /// ``` /// /// Use instead: