Skip to content

Commit 20f4b76

Browse files
committed
Remove unused variable fail_if_missing in test_parameter_docs
1 parent 48d6195 commit 20f4b76

1 file changed

Lines changed: 0 additions & 8 deletions

File tree

control/tests/docstrings_test.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -143,14 +143,6 @@ def test_parameter_docs(module, prefix):
143143
continue
144144

145145
# Don't fail on non-top-level functions without parameter lists
146-
# TODO: may be able to delete this
147-
if prefix != "" and inspect.getmodule(obj) != module and \
148-
doc is not None and doc["Parameters"] == [] and \
149-
doc["Returns"] == [] and doc["Yields"] == []:
150-
fail_if_missing = False
151-
else:
152-
fail_if_missing = True
153-
154146
_info(f"Checking function {objname} against numpydoc", 2)
155147
_check_numpydoc_style(obj, doc)
156148

0 commit comments

Comments
 (0)