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
+8 -2
View File
@@ -1,5 +1,6 @@
from __future__ import annotations
import shlex
from pathlib import Path
from typing import Any, cast
import pytest
@@ -13,7 +14,12 @@ from cibuildwheel.options import (
ShlexTableFormat,
_resolve_cascade,
)
from cibuildwheel.typing import PlatformName
TYPE_CHECKING = False
if TYPE_CHECKING:
from pathlib import Path
from cibuildwheel.typing import PlatformName
PYPROJECT_1 = """
[tool.cibuildwheel]