Skip to content

Commit

Permalink
linting
Browse files Browse the repository at this point in the history
  • Loading branch information
sanbrock committed Jun 19, 2023
1 parent 5d08208 commit f76a1a9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions dev_tools/nyaml2nxdl/nyaml2nxdl_forward_tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -978,8 +978,8 @@ def xml_handle_comment(
"""

line_info = (line_annotation, int(line_loc_no))
if line_info in COMMENT_BLOCKS:
cmnt = COMMENT_BLOCKS.get_coment_by_line_info(line_info)
if line_info in COMMENT_BLOCKS: # noqa: F821
cmnt = COMMENT_BLOCKS.get_coment_by_line_info(line_info) # noqa: F821
cmnt_text = cmnt.get_comment_text()

if is_def_cmnt:
Expand Down Expand Up @@ -1227,8 +1227,8 @@ def nyaml2nxdl(input_file: str, out_file, verbose: bool):
recursive_build(xml_root, yml_appdef[name_extends], verbose)
# Taking care of comments that comes at the end of file that is might not be intended for
# any nxdl elements.
if COMMENT_BLOCKS[-1].has_post_comment:
post_comment = COMMENT_BLOCKS[-1]
if COMMENT_BLOCKS[-1].has_post_comment: # noqa: F821
post_comment = COMMENT_BLOCKS[-1] # noqa: F821
(lin_annot, line_loc) = post_comment.get_line_info()
xml_handle_comment(xml_root, lin_annot, line_loc)

Expand Down

0 comments on commit f76a1a9

Please sign in to comment.