Skip to content

Commit c1bcf38

Browse files
feat: Add verbosity levels
1 parent 3468335 commit c1bcf38

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

src/thread/utils/config.py

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,16 @@
1+
from typing import Any, Literal, Union, Callable
2+
3+
4+
_Verbosity_Num = Literal[0, 1, 2]
5+
_Verbosity_Enum = Literal['quiet', 'normal', 'verbose']
6+
VerbosityLevel = Union[_Verbosity_Num, _Verbosity_Enum]
7+
VerbosityMapping: dict[_Verbosity_Enum, _Verbosity_Num] = {
8+
'quiet': 0,
9+
'normal': 1,
10+
'verbose': 2,
11+
}
12+
13+
114
class Settings:
215
"""
316
# Settings

0 commit comments

Comments
 (0)