mirror of
https://github.com/astral-sh/ruff.git
synced 2025-09-29 21:34:57 +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
|
/// ## Example
|
||||||
///
|
///
|
||||||
/// ```pyi
|
/// ```pyi
|
||||||
|
/// from typing import Any
|
||||||
|
///
|
||||||
/// class Foo:
|
/// class Foo:
|
||||||
/// def __eq__(self, obj: typing.Any) -> bool: ...
|
/// def __eq__(self, obj: Any) -> bool: ...
|
||||||
/// ```
|
/// ```
|
||||||
///
|
///
|
||||||
/// Use instead:
|
/// Use instead:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue