mirror of
https://github.com/astral-sh/ruff.git
synced 2025-08-04 10:49:50 +00:00
[flake8-pyi
] Make PYI032
example error out-of-the-box (#19061)
This commit is contained in:
parent
966adca6f6
commit
b8653a9d3a
1 changed files with 3 additions and 1 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue