chore: use if TYPE_CHECKING: blocks (#2866)
This commit is contained in:
@@ -1,10 +1,15 @@
|
||||
import textwrap
|
||||
from pathlib import Path
|
||||
from __future__ import annotations
|
||||
|
||||
import pytest
|
||||
import textwrap
|
||||
|
||||
from . import test_projects, utils
|
||||
|
||||
TYPE_CHECKING = False
|
||||
if TYPE_CHECKING:
|
||||
from pathlib import Path
|
||||
|
||||
import pytest
|
||||
|
||||
pyproject_toml = r"""
|
||||
[build-system]
|
||||
requires = ["setuptools", "wheel"]
|
||||
|
||||
Reference in New Issue
Block a user