chore: use if TYPE_CHECKING: blocks (#2866)
This commit is contained in:
@@ -1,7 +1,11 @@
|
||||
from pathlib import Path
|
||||
from __future__ import annotations
|
||||
|
||||
from . import test_projects, utils
|
||||
|
||||
TYPE_CHECKING = False
|
||||
if TYPE_CHECKING:
|
||||
from pathlib import Path
|
||||
|
||||
before_test_project = test_projects.new_c_project()
|
||||
before_test_project.files["test/spam_test.py"] = r"""
|
||||
import sys
|
||||
|
||||
Reference in New Issue
Block a user