File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -93,25 +93,25 @@ def print_object():
9393 object_output += base_level_str + " </OBJECT>\n "
9494 return object_output
9595
96- def print_children ():
96+ def print_children (children : List [ ReqIFSpecHierarchy ] ):
9797 children_output = ""
98- if len (hierarchy . children ) == 0 :
98+ if len (children ) == 0 :
9999 if hierarchy .is_self_closed :
100100 children_output += base_level_str + " <CHILDREN/>\n "
101101 return children_output
102102 children_output += base_level_str + " <CHILDREN>\n "
103- for child in hierarchy . children :
104- children_output += ReqIFSpecHierarchyParser .unparse (child )
103+ for child_ in children :
104+ children_output += ReqIFSpecHierarchyParser .unparse (child_ )
105105 children_output += base_level_str + " </CHILDREN>\n "
106106 return children_output
107107
108108 if hierarchy .ref_then_children_order :
109109 output += print_object ()
110110 if hierarchy .children is not None :
111- output += print_children ()
111+ output += print_children (hierarchy . children )
112112 else :
113113 if hierarchy .children is not None :
114- output += print_children ()
114+ output += print_children (hierarchy . children )
115115 output += print_object ()
116116
117117 output += base_level_str + "</SPEC-HIERARCHY>\n "
Original file line number Diff line number Diff line change @@ -147,7 +147,6 @@ def lint_mypy(context):
147147 mypy reqif/
148148 --show-error-codes
149149 --disable-error-code=import
150- --disable-error-code=arg-type
151150 --disable-error-code=no-untyped-call
152151 --disable-error-code=no-untyped-def
153152 --disable-error-code=type-arg
You can’t perform that action at this time.
0 commit comments