mirror of
https://github.com/astral-sh/ruff.git
synced 2025-11-01 20:30:49 +00:00
Remove Comprehension priority (#6947)
This commit is contained in:
parent
adb48692d6
commit
715d86dae9
3 changed files with 29 additions and 7 deletions
|
|
@ -100,6 +100,14 @@ if not (
|
|||
isinstance(aaaaaaaaaaaaaaaaaaaaaaa, bbbbbbbbb) and (xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx + yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy) or isinstance(ccccccccccc, dddddd)
|
||||
):
|
||||
pass
|
||||
|
||||
|
||||
def test():
|
||||
return (
|
||||
isinstance(other, Mapping)
|
||||
and {k.lower(): v for k, v in self.items()}
|
||||
== {k.lower(): v for k, v in other.items()}
|
||||
)
|
||||
```
|
||||
|
||||
## Output
|
||||
|
|
@ -220,6 +228,12 @@ if not (
|
|||
or isinstance(ccccccccccc, dddddd)
|
||||
):
|
||||
pass
|
||||
|
||||
|
||||
def test():
|
||||
return isinstance(other, Mapping) and {k.lower(): v for k, v in self.items()} == {
|
||||
k.lower(): v for k, v in other.items()
|
||||
}
|
||||
```
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue