(*args, color: Optional[str]=None, prefix: str='', config: Optional[ConfigDict]=None)
| 802 | sys.stdout.write(prefix + ''.join(strs)) |
| 803 | |
| 804 | def stderr(*args, color: Optional[str]=None, prefix: str='', config: Optional[ConfigDict]=None) -> None: |
| 805 | ansi = DEFAULT_CLI_COLORS if (config or {}).get('USE_COLOR') else ANSI |
| 806 | |
| 807 | if color: |
| 808 | strs = [ansi[color], ' '.join(str(a) for a in args), ansi['reset'], '\n'] |
| 809 | else: |
| 810 | strs = [' '.join(str(a) for a in args), '\n'] |
| 811 | |
| 812 | sys.stderr.write(prefix + ''.join(strs)) |
| 813 | |
| 814 | def hint(text: Union[Tuple[str, ...], List[str], str], prefix=' ', config: Optional[ConfigDict]=None) -> None: |
| 815 | ansi = DEFAULT_CLI_COLORS if (config or {}).get('USE_COLOR') else ANSI |
no test coverage detected