From 5cd2b5a66b5c5ba908ac006879db03f5a086d310 Mon Sep 17 00:00:00 2001 From: Hood Chatham Date: Sat, 6 May 2023 07:51:05 -0700 Subject: [PATCH] Fix lints --- cibuildwheel/pyodide.py | 8 ++++---- cibuildwheel/util.py | 3 --- cibuildwheel/windows.py | 1 - 3 files changed, 4 insertions(+), 8 deletions(-) diff --git a/cibuildwheel/pyodide.py b/cibuildwheel/pyodide.py index ff5b0fc7a..2532fcd3d 100644 --- a/cibuildwheel/pyodide.py +++ b/cibuildwheel/pyodide.py @@ -4,10 +4,9 @@ import os import shutil import sys -from collections.abc import Set +from collections.abc import Sequence, Set from dataclasses import dataclass from pathlib import Path -from typing import Sequence from filelock import FileLock @@ -28,7 +27,6 @@ get_pip_version, prepare_command, read_python_configs, - resources_dir, shell, split_config_settings, test_fail_cwd_file, @@ -220,7 +218,9 @@ def build(options: Options, tmp_path: Path) -> None: dependency_constraint_flags: Sequence[PathOrStr] = [] if build_options.dependency_constraints: - constraints_path = build_options.dependency_constraints.get_for_python_version(config.version), + constraints_path = build_options.dependency_constraints.get_for_python_version( + config.version + ) dependency_constraint_flags = ["-c", constraints_path] env = setup_python( diff --git a/cibuildwheel/util.py b/cibuildwheel/util.py index 9c7bf0459..29f19f894 100644 --- a/cibuildwheel/util.py +++ b/cibuildwheel/util.py @@ -22,9 +22,6 @@ from typing import ( Any, ClassVar, - Generator, - Iterable, - Sequence, TextIO, TypeVar, ) diff --git a/cibuildwheel/windows.py b/cibuildwheel/windows.py index 504522fbc..56f0eb9ab 100644 --- a/cibuildwheel/windows.py +++ b/cibuildwheel/windows.py @@ -11,7 +11,6 @@ from dataclasses import dataclass from functools import lru_cache from pathlib import Path -from typing import Sequence from filelock import FileLock from packaging.version import Version