Skip to content

Commit

Permalink
pylint: disable=no_member
Browse files Browse the repository at this point in the history
  • Loading branch information
Christian-B committed Aug 4, 2023
1 parent f3373aa commit 2fa395f
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions spinnman/extended/extended_transceiver.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,9 @@ class ExtendedTransceiver(object, metaclass=AbstractBase):
"""
__slots__ = []

# calls many methods only reachable do to require_subclass
# pylint: disable=no_member

def send_scp_message(self, message, connection=None):
"""
Sends an SCP message, without expecting a response.
Expand All @@ -88,8 +91,8 @@ def send_scp_message(self, message, connection=None):
If the response is not one of the expected codes
"""
if connection is None:
connection = self._scamp_connectio[random.randint(
0, len(self._scamp_connectio) - 1)]
connection = self.scamp_connections[random.randint(
0, len(self.scamp_connections) - 1)]
connection.send_scp_request(message)

def is_connected(self, connection=None):
Expand All @@ -107,7 +110,7 @@ def is_connected(self, connection=None):
if connection is not None:
return connection.is_connected()
return any(c.is_connected() and isinstance(c, SCAMPConnection)
for c in self._scamp_connections)
for c in self.scamp_connections)

def get_iobuf_from_core(self, x, y, p):
"""
Expand Down

0 comments on commit 2fa395f

Please sign in to comment.