Skip to content

Commit

Permalink
Add noqa comments to variables that look unused but are needed
Browse files Browse the repository at this point in the history
  • Loading branch information
johannaengland committed Sep 25, 2024
1 parent 5b719ff commit b25cdab
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion python/nav/ipdevpoll/plugins/entity.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ def on_plugin_load(cls):
@defer.inlineCallbacks
def handle(self):
self._logger.debug("Collecting physical entity data")
need_to_collect = yield self._need_to_collect()
need_to_collect = yield self._need_to_collect() # noqa: F841 - needs work
# if need_to_collect:
if True:
physical_table = yield self.entitymib.get_entity_physical_table()
Expand Down
2 changes: 1 addition & 1 deletion python/nav/web/seeddb/page/netbox/edit.py
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ def check_snmp_version(ip, profile):
def test_napalm_connectivity(ip_address: str, profile: ManagementProfile) -> dict:
"""Tests connectivity of a NAPALM profile and returns a status dictionary"""
try:
with napalm.connect(ip_address, profile) as device:
with napalm.connect(ip_address, profile) as device: # noqa
return {"status": True}
except Exception as error:
_logger.exception("Could not connect to %s using NAPALM profile", ip_address)
Expand Down

0 comments on commit b25cdab

Please sign in to comment.