chore: bump ruff to 0.6.8 for fixing violation in SIM910 (#8869)

This commit is contained in:
Bowen Liang 2024-09-29 00:29:59 +08:00 committed by GitHub
commit 74f58f29f9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 27 additions and 27 deletions

View file

@ -248,7 +248,7 @@ def required_args(*variants: Sequence[str]) -> Callable[[CallableT], CallableT]:
@functools.wraps(func)
def wrapper(*args: object, **kwargs: object) -> object:
given_params: set[str] = set()
for i, _ in enumerate(args):
for i in range(len(args)):
try:
given_params.add(positional[i])
except IndexError: