mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-07 20:54:28 +08:00
Fix CI, use new termcolor version (#10079)
This commit is contained in:
@@ -7,14 +7,14 @@ import os
|
||||
import re
|
||||
import subprocess
|
||||
import sys
|
||||
from collections.abc import Iterable
|
||||
from pathlib import Path
|
||||
from typing import Any
|
||||
|
||||
try:
|
||||
from termcolor import colored
|
||||
from termcolor import colored # pyright: ignore[reportGeneralTypeIssues]
|
||||
except ImportError:
|
||||
|
||||
def colored(text: str, color: str | None = None, on_color: str | None = None, attrs: Iterable[str] | None = None) -> str:
|
||||
def colored(text: str, color: str | None = None, **kwargs: Any) -> str: # type: ignore[misc]
|
||||
return text
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user