From 3080b84dad87c63644a852bb4316e3e35a280780 Mon Sep 17 00:00:00 2001 From: "Christian Y. Brenninkmeijer" Date: Mon, 15 Jan 2024 14:51:07 +0000 Subject: [PATCH] pylint disables --- gfe_examples/live_io/live_io.py | 2 +- spinnaker_graph_front_end/__init__.py | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/gfe_examples/live_io/live_io.py b/gfe_examples/live_io/live_io.py index 6bdbc411..1ec45f39 100644 --- a/gfe_examples/live_io/live_io.py +++ b/gfe_examples/live_io/live_io.py @@ -48,7 +48,7 @@ def start_sending(label, c): def end_sim(label, c): - # pylint: disable=unused-argument + # pylint: disable=unused-argument,global-statement global running running = False diff --git a/spinnaker_graph_front_end/__init__.py b/spinnaker_graph_front_end/__init__.py index eb3362bf..9542e3ca 100644 --- a/spinnaker_graph_front_end/__init__.py +++ b/spinnaker_graph_front_end/__init__.py @@ -113,6 +113,7 @@ def setup(model_binary_module=None, :raise ~spinn_front_end_common.utilities.exceptions.ConfigurationException: if mutually exclusive options are given. """ + # pylint: disable=global-statement global __simulator # pylint: disable=redefined-outer-name logger.info( @@ -223,6 +224,7 @@ def add_machine_vertex_instance(machine_vertex): app_vertex = AbstractOneAppOneMachineVertex( machine_vertex, machine_vertex.label) FecDataView.add_vertex(app_vertex) + # pylint: disable=protected-access machine_vertex._app_vertex = app_vertex