diff options
| author | 2022-12-01 09:36:18 +0100 | |
|---|---|---|
| committer | 2022-12-01 09:36:18 +0100 | |
| commit | 469092002b7f1e1657468941bd86ccd3738baac3 (patch) | |
| tree | f61cbeefd0bb3e30944165caa6dc5302725f8966 /aoc/utils.py | |
| parent | f57d4d02c5b8050694784e948086271a7f4e49e5 (diff) | |
| download | 2022-469092002b7f1e1657468941bd86ccd3738baac3.tar.gz 2022-469092002b7f1e1657468941bd86ccd3738baac3.tar.bz2 2022-469092002b7f1e1657468941bd86ccd3738baac3.zip | |
Added pre-commit
Diffstat (limited to 'aoc/utils.py')
| -rw-r--r-- | aoc/utils.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/aoc/utils.py b/aoc/utils.py index 6d794f4..a5de050 100644 --- a/aoc/utils.py +++ b/aoc/utils.py | |||
| @@ -1,5 +1,6 @@ | |||
| 1 | # -*- coding: utf-8 -*- | ||
| 1 | from typing import Callable | 2 | from typing import Callable |
| 2 | 3 | ||
| 3 | 4 | ||
| 4 | def bold(item: str, condition: Callable[[], bool]): | 5 | def bold(item: str, condition: Callable[[], bool]): |
| 5 | return f'\033[36m{item}\033[0m' if condition() else item | 6 | return f"\033[36m{item}\033[0m" if condition() else item |
