-
Notifications
You must be signed in to change notification settings - Fork 383
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[plist2html] Add type hints #3214
[plist2html] Add type hints #3214
Conversation
""" | ||
def twodim_to_table( | ||
lines: List[List[str]], | ||
separate_head=True, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
separate_head=True, | |
separate_head: bool =True, |
def twodim_to_table( | ||
lines: List[List[str]], | ||
separate_head=True, | ||
separate_footer=False |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
separate_footer=False | |
separate_footer: bool =False |
@@ -123,7 +139,7 @@ def __init__(self, layout_dir, severity_map=None): | |||
self._tag_contents[tag] = get_file_content( | |||
self._layout_tag_files[tag]) | |||
|
|||
def create(self, output_path, report_data): | |||
def create(self, output_path: str, report_data): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What is the type of report_data?
- Add type hints to `plist-to-html` tool. - Add `mypy` static type checker to the requirements - Create new targets to check the code with mypy.
0a6bf44
to
1fa63cb
Compare
plist-to-html
tool.mypy
static type checker to the requirements