chore: remove remaining future annotations (#2799)
This commit is contained in:
@@ -1,19 +1,14 @@
|
|||||||
from __future__ import annotations
|
|
||||||
|
|
||||||
import sys
|
import sys
|
||||||
from typing import TYPE_CHECKING, Final, Protocol
|
from collections.abc import Sequence
|
||||||
|
from pathlib import Path
|
||||||
|
from typing import Final, Protocol
|
||||||
|
|
||||||
from cibuildwheel import errors
|
from cibuildwheel import errors
|
||||||
|
from cibuildwheel.architecture import Architecture
|
||||||
|
from cibuildwheel.options import Options
|
||||||
from cibuildwheel.platforms import android, ios, linux, macos, pyodide, windows
|
from cibuildwheel.platforms import android, ios, linux, macos, pyodide, windows
|
||||||
|
from cibuildwheel.selector import BuildSelector
|
||||||
if TYPE_CHECKING:
|
from cibuildwheel.typing import GenericPythonConfiguration, PlatformName
|
||||||
from collections.abc import Sequence
|
|
||||||
from pathlib import Path
|
|
||||||
|
|
||||||
from cibuildwheel.architecture import Architecture
|
|
||||||
from cibuildwheel.options import Options
|
|
||||||
from cibuildwheel.selector import BuildSelector
|
|
||||||
from cibuildwheel.typing import GenericPythonConfiguration, PlatformName
|
|
||||||
|
|
||||||
|
|
||||||
class PlatformModule(Protocol):
|
class PlatformModule(Protocol):
|
||||||
|
|||||||
@@ -1,5 +1,3 @@
|
|||||||
from __future__ import annotations
|
|
||||||
|
|
||||||
import dataclasses
|
import dataclasses
|
||||||
import os
|
import os
|
||||||
import platform
|
import platform
|
||||||
@@ -8,15 +6,20 @@ import shutil
|
|||||||
import subprocess
|
import subprocess
|
||||||
import sys
|
import sys
|
||||||
import textwrap
|
import textwrap
|
||||||
|
from collections.abc import Sequence, Set
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
from typing import TYPE_CHECKING, assert_never
|
from typing import assert_never
|
||||||
|
|
||||||
from filelock import FileLock
|
from filelock import FileLock
|
||||||
|
|
||||||
from cibuildwheel import errors
|
from cibuildwheel import errors
|
||||||
|
from cibuildwheel.architecture import Architecture
|
||||||
|
from cibuildwheel.environment import ParsedEnvironment
|
||||||
from cibuildwheel.frontend import BuildFrontendName, get_build_frontend_extra_flags
|
from cibuildwheel.frontend import BuildFrontendName, get_build_frontend_extra_flags
|
||||||
from cibuildwheel.logger import log
|
from cibuildwheel.logger import log
|
||||||
|
from cibuildwheel.options import Options
|
||||||
from cibuildwheel.platforms.macos import install_cpython as install_build_cpython
|
from cibuildwheel.platforms.macos import install_cpython as install_build_cpython
|
||||||
|
from cibuildwheel.selector import BuildSelector
|
||||||
from cibuildwheel.util import resources
|
from cibuildwheel.util import resources
|
||||||
from cibuildwheel.util.cmd import call, shell, split_command
|
from cibuildwheel.util.cmd import call, shell, split_command
|
||||||
from cibuildwheel.util.file import CIBW_CACHE_PATH, copy_test_sources, download, move_file
|
from cibuildwheel.util.file import CIBW_CACHE_PATH, copy_test_sources, download, move_file
|
||||||
@@ -24,14 +27,6 @@ from cibuildwheel.util.helpers import prepare_command, unwrap_preserving_paragra
|
|||||||
from cibuildwheel.util.packaging import find_compatible_wheel
|
from cibuildwheel.util.packaging import find_compatible_wheel
|
||||||
from cibuildwheel.venv import constraint_flags, virtualenv
|
from cibuildwheel.venv import constraint_flags, virtualenv
|
||||||
|
|
||||||
if TYPE_CHECKING:
|
|
||||||
from collections.abc import Sequence, Set
|
|
||||||
|
|
||||||
from cibuildwheel.architecture import Architecture
|
|
||||||
from cibuildwheel.environment import ParsedEnvironment
|
|
||||||
from cibuildwheel.options import Options
|
|
||||||
from cibuildwheel.selector import BuildSelector
|
|
||||||
|
|
||||||
|
|
||||||
@dataclasses.dataclass(frozen=True, kw_only=True)
|
@dataclasses.dataclass(frozen=True, kw_only=True)
|
||||||
class PythonConfiguration:
|
class PythonConfiguration:
|
||||||
|
|||||||
@@ -1,5 +1,3 @@
|
|||||||
from __future__ import annotations
|
|
||||||
|
|
||||||
import os
|
import os
|
||||||
import platform
|
import platform
|
||||||
import shutil
|
import shutil
|
||||||
|
|||||||
Reference in New Issue
Block a user