Skip to content

Commit

Permalink
Fix type annotaion errors
Browse files Browse the repository at this point in the history
  • Loading branch information
abitrolly committed Jul 1, 2022
1 parent d56ce22 commit baec38a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/build/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ def _init_colors() -> Dict[str, str]:
_STYLES = _init_colors()


def _cprint(fmt: Optional[str] = '', msg: Optional[str] = ''):
def _cprint(fmt: str = '', msg: str = '') -> None:
print(fmt.format(msg, **_STYLES), flush=True)


Expand All @@ -59,7 +59,7 @@ def _showwarning(
file: Optional[TextIO] = None,
line: Optional[str] = None,
) -> None: # pragma: no cover
_cprint('{yellow}WARNING{reset} {}', message)
_cprint('{yellow}WARNING{reset} {}', str(message))


def _setup_cli() -> None:
Expand Down

0 comments on commit baec38a

Please sign in to comment.