chore: use if TYPE_CHECKING: blocks (#2866)
This commit is contained in:
@@ -1,10 +1,14 @@
|
||||
from pathlib import Path
|
||||
from __future__ import annotations
|
||||
|
||||
import jinja2
|
||||
|
||||
from . import utils
|
||||
from .test_projects import TestProject
|
||||
|
||||
TYPE_CHECKING = False
|
||||
if TYPE_CHECKING:
|
||||
from pathlib import Path
|
||||
|
||||
cpp_test_project = TestProject()
|
||||
|
||||
setup_py_template = r"""
|
||||
|
||||
Reference in New Issue
Block a user