Avoid suggesting starmap when arguments are used outside call (#11830)

## Summary

Closes https://github.com/astral-sh/ruff/issues/11810.
This commit is contained in:
Charlie Marsh 2024-06-10 14:10:06 -07:00 committed by GitHub
parent 0d06900cec
commit 08b548626a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 24 additions and 7 deletions

View file

@ -53,3 +53,7 @@ from itertools import starmap as sm
[print(x, *y) for x, y in zipped()]
[print(*x, *y) for x, y in zipped()]
[" ".join(x)(x, y) for x, y in zipped()]
[" ".join(x)(*x) for x in zipped()]