Move common utility functions to a common library (#12773)

This commit is contained in:
Sebastian Rittau authored and GitHub committed 2024-10-14 08:00:02 +02:00
1 parent 407eeaa133
commit 1fa4986f71
21 files changed
+31 -31

No files matched your search

+1 -10
View File
@@ -9,17 +9,8 @@ import subprocess
import sys
from importlib.util import find_spec
from pathlib import Path
from typing import Any
from _utils import TEST_CASES_DIR, test_cases_path
try:
from termcolor import colored # pyright: ignore[reportAssignmentType]
except ImportError:
def colored(text: str, color: str | None = None, **kwargs: Any) -> str: # type: ignore[misc]
return text
from ts_utils.utils import TEST_CASES_DIR, colored, test_cases_path
_STRICTER_CONFIG_FILE = "pyrightconfig.stricter.json"
_TESTCASES_CONFIG_FILE = "pyrightconfig.testcases.json"