Fix incorrect typing of function in code_style.py

Signed-off-by: David Horstmann <david.horstmann@arm.com>
This commit is contained in:
David Horstmann 2023-01-05 09:59:35 +00:00
parent bec95320ba
commit 8d1d6edb0b

View file

@ -132,7 +132,7 @@ def check_style_is_correct(src_file_list: List[str]) -> bool:
return style_correct return style_correct
def fix_style_single_pass(src_file_list: List[str]) -> None: def fix_style_single_pass(src_file_list: List[str]) -> bool:
""" """
Run Uncrustify once over the source files. Run Uncrustify once over the source files.
""" """
@ -146,6 +146,7 @@ def fix_style_single_pass(src_file_list: List[str]) -> None:
str(result.returncode) + " correcting file " + \ str(result.returncode) + " correcting file " + \
src_file) src_file)
return False return False
return True
def fix_style(src_file_list: List[str]) -> int: def fix_style(src_file_list: List[str]) -> int:
""" """