Skip to content

Commit 44ca508

Browse files
authored
Merge pull request #174 from strictdoc-project/stanislaw/datatypes_enumeration
Code climate: mypy: enable "arg-type" check
2 parents b7adf82 + 71598ef commit 44ca508

2 files changed

Lines changed: 6 additions & 7 deletions

File tree

reqif/parsers/spec_hierarchy_parser.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff 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"

tasks.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)