chore: use if TYPE_CHECKING: blocks (#2866)
This commit is contained in:
@@ -1,8 +1,9 @@
|
||||
from __future__ import annotations
|
||||
|
||||
import json
|
||||
import re
|
||||
import subprocess
|
||||
import textwrap
|
||||
from pathlib import Path
|
||||
|
||||
import pytest
|
||||
|
||||
@@ -10,6 +11,10 @@ from cibuildwheel.util import resources
|
||||
|
||||
from . import test_projects, utils
|
||||
|
||||
TYPE_CHECKING = False
|
||||
if TYPE_CHECKING:
|
||||
from pathlib import Path
|
||||
|
||||
VERSION_REGEX = r"([\w-]+)==([^;\s]+)"
|
||||
|
||||
CHECK_VERSIONS_SCRIPT = """\
|
||||
|
||||
Reference in New Issue
Block a user