mirror of
https://github.com/astral-sh/ruff.git
synced 2025-08-31 07:37:38 +00:00
Preserve generator parentheses in single argument call expressions (#7226)
This commit is contained in:
parent
e376c3ff7e
commit
a352f2f092
5 changed files with 67 additions and 14 deletions
|
@ -16,6 +16,11 @@ f((1) for _ in (a))
|
|||
# combination of the two above
|
||||
f(((1) for _ in (a)))
|
||||
|
||||
bases = tuple(
|
||||
(base._meta.label_lower if hasattr(base, "_meta") else base)
|
||||
for base in flattened_bases
|
||||
)
|
||||
|
||||
|
||||
# black keeps these atm, but intends to remove them in the future:
|
||||
# https://github.com/psf/black/issues/2943
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue