mirror of
https://github.com/astral-sh/ruff.git
synced 2025-10-02 06:41:23 +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
|
||||
/// ```python
|
||||
/// class Foo:
|
||||
/// def bar(cls):
|
||||
/// def bar(arg1, arg2):
|
||||
/// ...
|
||||
///
|
||||
/// bar = staticmethod(bar)
|
||||
|
@ -63,7 +63,7 @@ impl AlwaysFixableViolation for NoClassmethodDecorator {
|
|||
/// ```python
|
||||
/// class Foo:
|
||||
/// @staticmethod
|
||||
/// def bar(cls):
|
||||
/// def bar(arg1, arg2):
|
||||
/// ...
|
||||
/// ```
|
||||
#[violation]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue