Print styled text(red). :parameter text: text to print. :parameter print_function: Function that will be used to print in game.
(text: str, print_function: Callable[[str], None])
| 23 | |
| 24 | |
| 25 | def print_wrong(text: str, print_function: Callable[[str], None]) -> None: |
| 26 | """ |
| 27 | Print styled text(red). |
| 28 | |
| 29 | :parameter text: text to print. |
| 30 | :parameter print_function: Function that will be used to print in game. |
| 31 | """ |
| 32 | text_to_print = Style.RESET_ALL + Fore.RED + text |
| 33 | print_function(text_to_print) |
| 34 | |
| 35 | |
| 36 | def print_right(text: str, print_function: Callable[[str], None]) -> None: |
no outgoing calls
no test coverage detected