Fix example for PLR0203 (#9011)

This commit is contained in:
Ofek Lev 2023-12-05 13:55:15 -05:00 committed by GitHub
parent fe54ef08aa
commit fd49fb935f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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]