Code improvements from new Ruff checks (#11498)

This commit is contained in:
Avasam
2024-02-29 01:30:18 -05:00
committed by GitHub
parent c75ecf0bca
commit da69247514
9 changed files with 12 additions and 14 deletions

View File

@@ -210,7 +210,7 @@ def run_all_tests(*, files_to_test: Sequence[str], print_stderr: bool, dry_run:
missing_modules = get_missing_modules(files_to_test)
print("Testing files with pytype...")
for i, f in enumerate(files_to_test):
python_version = "{0.major}.{0.minor}".format(sys.version_info)
python_version = f"{sys.version_info.major}.{sys.version_info.minor}"
if dry_run:
stderr = None
else: