mirror of
https://github.com/astral-sh/ruff.git
synced 2025-10-02 22:55:08 +00:00
Fix example for PLR0203 (#9011)
This commit is contained in:
parent
fe54ef08aa
commit
fd49fb935f
1 changed files with 2 additions and 2 deletions
|
@ -53,7 +53,7 @@ impl AlwaysFixableViolation for NoClassmethodDecorator {
|
||||||
/// ## Example
|
/// ## Example
|
||||||
/// ```python
|
/// ```python
|
||||||
/// class Foo:
|
/// class Foo:
|
||||||
/// def bar(cls):
|
/// def bar(arg1, arg2):
|
||||||
/// ...
|
/// ...
|
||||||
///
|
///
|
||||||
/// bar = staticmethod(bar)
|
/// bar = staticmethod(bar)
|
||||||
|
@ -63,7 +63,7 @@ impl AlwaysFixableViolation for NoClassmethodDecorator {
|
||||||
/// ```python
|
/// ```python
|
||||||
/// class Foo:
|
/// class Foo:
|
||||||
/// @staticmethod
|
/// @staticmethod
|
||||||
/// def bar(cls):
|
/// def bar(arg1, arg2):
|
||||||
/// ...
|
/// ...
|
||||||
/// ```
|
/// ```
|
||||||
#[violation]
|
#[violation]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue