Skip to content

Commit 72e1c3e

Browse files
committed
fix: help mypy see the returns are strings
1 parent 7aaf405 commit 72e1c3e

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

scripts/generate_osv_advisories.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -481,19 +481,19 @@ def generate_osv_advisories() -> None:
481481

482482

483483
def notice_string(message: str) -> str:
484-
return Fore.YELLOW + Style.DIM + message + Style.RESET_ALL
484+
return f'{Fore.YELLOW}{Style.DIM}{message}{Style.RESET_ALL}'
485485

486486

487487
def success_string(message: str) -> str:
488-
return Fore.GREEN + message + Style.RESET_ALL
488+
return f'{Fore.GREEN}{message}{Style.RESET_ALL}'
489489

490490

491491
def warning_string(message: str) -> str:
492-
return Fore.YELLOW + message + Style.RESET_ALL
492+
return f'{Fore.YELLOW}{message}{Style.RESET_ALL}'
493493

494494

495495
def error_string(message: str) -> str:
496-
return Fore.RED + message + Style.RESET_ALL
496+
return f'{Fore.RED}{message}{Style.RESET_ALL}'
497497

498498

499499
if __name__ == '__main__':

0 commit comments

Comments
 (0)