Remove unused variable reported by Pyright (#3368)

This commit is contained in:
correctmost 2025-04-08 13:14:49 +00:00 committed by GitHub
parent a67b2dea60
commit d5c210f933
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -29,7 +29,7 @@ _VT100_ESCAPE_REGEX_BYTES = _VT100_ESCAPE_REGEX.encode()
def generate_password(length: int = 64) -> str:
haystack = string.printable # digits, ascii_letters, punctuation (!"#$[] etc) and whitespace
return ''.join(secrets.choice(haystack) for i in range(length))
return ''.join(secrets.choice(haystack) for _ in range(length))
def locate_binary(name: str) -> str: