mirror of
https://github.com/astral-sh/ruff.git
synced 2025-08-03 18:28:56 +00:00
[pylint
] Supress PLE2510
/2512
/2513
/2514
/2515
autofix if the text contains an odd number of backslashes (#18856)
Co-authored-by: Micha Reiser <micha@reiser.io>
This commit is contained in:
parent
96660d93ca
commit
659ecba477
8 changed files with 13 additions and 8 deletions
|
@ -232,14 +232,10 @@ if True:
|
|||
#[test]
|
||||
fn quick_test() {
|
||||
let source = r#"
|
||||
def main() -> None:
|
||||
if True:
|
||||
some_very_long_variable_name_abcdefghijk = Foo()
|
||||
some_very_long_variable_name_abcdefghijk = some_very_long_variable_name_abcdefghijk[
|
||||
some_very_long_variable_name_abcdefghijk.some_very_long_attribute_name
|
||||
== "This is a very long string abcdefghijk"
|
||||
]
|
||||
def hello(): ...
|
||||
|
||||
@lambda _, /: _
|
||||
class A: ...
|
||||
"#;
|
||||
let source_type = PySourceType::Python;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue