mirror of https://github.com/astral-sh/ruff
Fix example for PLR0203 (#9011)
This commit is contained in:
parent
fe54ef08aa
commit
fd49fb935f
|
|
@ -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…
Reference in New Issue