Assignment from no return (#658)
* added unnecessary-dunder-call to pylintrc files; disabled for certain lines in run_tests.py, exception thrown by 'git remote add origin' when the remote already exists will not exit Signed-off-by: Mark Cohen <[email protected]> * updates to adhere to assignment-from-no-return lint Signed-off-by: Mark Cohen <[email protected]> * simplified get_value_filter in Facet to return None added assert to test get_value_filter returning None Signed-off-by: Mark Cohen <[email protected]> * added option to output HTML test coverage locally from run_tests.py returning None from test_faceted_search.Facet.get_value_filter Signed-off-by: Mark Cohen <[email protected]> * added unused-variable lints; replaced unused variables with _ or referenced them Signed-off-by: Mark Cohen <[email protected]> * updated CHANGELOG to point to the right PR Signed-off-by: Mark Cohen <[email protected]> --------- Signed-off-by: Mark Cohen <[email protected]>
This commit is contained in:
@@ -145,7 +145,7 @@ def wipe_node_shutdown_metadata(client: Any) -> None:
|
||||
|
||||
def wipe_tasks(client: Any) -> None:
|
||||
tasks = client.tasks.list()
|
||||
for node_name, node in tasks.get("node", {}).items():
|
||||
for _, node in tasks.get("node", {}).items():
|
||||
for task_id in node.get("tasks", ()):
|
||||
client.tasks.cancel(task_id=task_id, wait_for_completion=True)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user