chore: use if TYPE_CHECKING: blocks (#2866)

This commit is contained in:
Matthieu Darbois
2026-05-27 18:20:08 -04:00
committed by GitHub
parent 2380f52783
commit e3e7cc9e07
79 changed files with 566 additions and 168 deletions
+6 -1
View File
@@ -1,3 +1,5 @@
from __future__ import annotations
import contextlib
import json
import os
@@ -7,7 +9,6 @@ import subprocess
import sys
import textwrap
import time
from collections.abc import Iterator
from contextlib import nullcontext
from pathlib import Path, PurePath, PurePosixPath
@@ -25,6 +26,10 @@ from cibuildwheel.oci_container import (
_check_engine_version,
)
TYPE_CHECKING = False
if TYPE_CHECKING:
from collections.abc import Iterator
# Test utilities
# for these tests we use manylinux2014 images, because they're available on