chore: use if TYPE_CHECKING: blocks (#2866)
This commit is contained in:
@@ -1,9 +1,13 @@
|
||||
from pathlib import Path
|
||||
from __future__ import annotations
|
||||
|
||||
import packaging.utils
|
||||
|
||||
from . import test_projects, utils
|
||||
|
||||
TYPE_CHECKING = False
|
||||
if TYPE_CHECKING:
|
||||
from pathlib import Path
|
||||
|
||||
meson_project = test_projects.new_meson_project()
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user