chore: use if TYPE_CHECKING: blocks (#2866)
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
from __future__ import annotations
|
||||
|
||||
import subprocess
|
||||
from pathlib import Path
|
||||
|
||||
@@ -7,6 +9,10 @@ from test import test_projects
|
||||
|
||||
from . import utils
|
||||
|
||||
TYPE_CHECKING = False
|
||||
if TYPE_CHECKING:
|
||||
from pathlib import Path
|
||||
|
||||
pure_python_project = test_projects.TestProject()
|
||||
pure_python_project.files["setup.py"] = """
|
||||
from setuptools import Extension, setup
|
||||
|
||||
Reference in New Issue
Block a user