mirror of
https://github.com/astral-sh/ruff.git
synced 2025-09-28 04:45:01 +00:00
This commit is contained in:
parent
dbfdaaded1
commit
dbb2efdb87
1 changed files with 4 additions and 4 deletions
|
@ -39,7 +39,7 @@ no_self_use.py:103:9: PLR6301 Method `validate_y` could be a function, class met
|
||||||
no_self_use.py:128:9: PLR6301 Method `non_simple_assignment` could be a function, class method, or static method
|
no_self_use.py:128:9: PLR6301 Method `non_simple_assignment` could be a function, class method, or static method
|
||||||
|
|
|
|
||||||
126 | # Errors
|
126 | # Errors
|
||||||
127 |
|
127 |
|
||||||
128 | def non_simple_assignment(self):
|
128 | def non_simple_assignment(self):
|
||||||
| ^^^^^^^^^^^^^^^^^^^^^ PLR6301
|
| ^^^^^^^^^^^^^^^^^^^^^ PLR6301
|
||||||
129 | msg = foo = ""
|
129 | msg = foo = ""
|
||||||
|
@ -49,7 +49,7 @@ no_self_use.py:128:9: PLR6301 Method `non_simple_assignment` could be a function
|
||||||
no_self_use.py:132:9: PLR6301 Method `non_simple_assignment_2` could be a function, class method, or static method
|
no_self_use.py:132:9: PLR6301 Method `non_simple_assignment_2` could be a function, class method, or static method
|
||||||
|
|
|
|
||||||
130 | raise NotImplementedError(msg)
|
130 | raise NotImplementedError(msg)
|
||||||
131 |
|
131 |
|
||||||
132 | def non_simple_assignment_2(self):
|
132 | def non_simple_assignment_2(self):
|
||||||
| ^^^^^^^^^^^^^^^^^^^^^^^ PLR6301
|
| ^^^^^^^^^^^^^^^^^^^^^^^ PLR6301
|
||||||
133 | msg[0] = ""
|
133 | msg[0] = ""
|
||||||
|
@ -59,7 +59,7 @@ no_self_use.py:132:9: PLR6301 Method `non_simple_assignment_2` could be a functi
|
||||||
no_self_use.py:136:9: PLR6301 Method `unused_message` could be a function, class method, or static method
|
no_self_use.py:136:9: PLR6301 Method `unused_message` could be a function, class method, or static method
|
||||||
|
|
|
|
||||||
134 | raise NotImplementedError(msg)
|
134 | raise NotImplementedError(msg)
|
||||||
135 |
|
135 |
|
||||||
136 | def unused_message(self):
|
136 | def unused_message(self):
|
||||||
| ^^^^^^^^^^^^^^ PLR6301
|
| ^^^^^^^^^^^^^^ PLR6301
|
||||||
137 | msg = ""
|
137 | msg = ""
|
||||||
|
@ -69,7 +69,7 @@ no_self_use.py:136:9: PLR6301 Method `unused_message` could be a function, class
|
||||||
no_self_use.py:140:9: PLR6301 Method `unused_message_2` could be a function, class method, or static method
|
no_self_use.py:140:9: PLR6301 Method `unused_message_2` could be a function, class method, or static method
|
||||||
|
|
|
|
||||||
138 | raise NotImplementedError("")
|
138 | raise NotImplementedError("")
|
||||||
139 |
|
139 |
|
||||||
140 | def unused_message_2(self, x):
|
140 | def unused_message_2(self, x):
|
||||||
| ^^^^^^^^^^^^^^^^ PLR6301
|
| ^^^^^^^^^^^^^^^^ PLR6301
|
||||||
141 | msg = ""
|
141 | msg = ""
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue