core: more type annotations
This commit is contained in:
parent
44b756cc6b
commit
06ee72bc30
7 changed files with 43 additions and 34 deletions
|
@ -35,6 +35,11 @@ def _warn(message: str, *args, color=None, **kwargs) -> None:
|
|||
warnings.warn(_colorize(message, color=color), *args, **kwargs)
|
||||
|
||||
|
||||
def low(message: str, *args, **kwargs) -> None:
|
||||
kwargs['color'] = 'grey'
|
||||
_warn(message, *args, **kwargs)
|
||||
|
||||
|
||||
def medium(message: str, *args, **kwargs) -> None:
|
||||
kwargs['color'] = 'yellow'
|
||||
_warn(message, *args, **kwargs)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue