mirror of
https://github.com/astral-sh/ruff.git
synced 2025-09-30 22:01:18 +00:00
[flake8-pyi
] Make example error out-of-the-box (PYI014
, PYI015
) (#19097)
This commit is contained in:
parent
dc56c33618
commit
d0f0577ac7
1 changed files with 2 additions and 2 deletions
|
@ -75,7 +75,7 @@ impl AlwaysFixableViolation for TypedArgumentDefaultInStub {
|
||||||
/// ## Example
|
/// ## Example
|
||||||
///
|
///
|
||||||
/// ```pyi
|
/// ```pyi
|
||||||
/// def foo(arg=[]) -> None: ...
|
/// def foo(arg=bar()) -> None: ...
|
||||||
/// ```
|
/// ```
|
||||||
///
|
///
|
||||||
/// Use instead:
|
/// Use instead:
|
||||||
|
@ -120,7 +120,7 @@ impl AlwaysFixableViolation for ArgumentDefaultInStub {
|
||||||
///
|
///
|
||||||
/// ## Example
|
/// ## Example
|
||||||
/// ```pyi
|
/// ```pyi
|
||||||
/// foo: str = "..."
|
/// foo: str = bar()
|
||||||
/// ```
|
/// ```
|
||||||
///
|
///
|
||||||
/// Use instead:
|
/// Use instead:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue