chore: use if TYPE_CHECKING: blocks (#2866)

This commit is contained in:
Matthieu Darbois
2026-05-27 18:20:08 -04:00
committed by GitHub
parent 2380f52783
commit e3e7cc9e07
79 changed files with 566 additions and 168 deletions
+10 -5
View File
@@ -1,17 +1,22 @@
from __future__ import annotations
import os
import subprocess
import sys
import textwrap
from collections.abc import Mapping
from pathlib import Path
from tempfile import TemporaryDirectory
import pytest
from test.test_projects.base import TestProject
from . import test_projects, utils
TYPE_CHECKING = False
if TYPE_CHECKING:
from collections.abc import Mapping
import pytest
from test.test_projects.base import TestProject
# utilities