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
|
/// ## 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…
Reference in New Issue