Skip to content

Commit 922a43e

Browse files
committed
Fix consider-using-dict-items condition
1 parent 642e939 commit 922a43e

2 files changed

Lines changed: 2 additions & 3 deletions

File tree

network_importer/drivers/converters.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,8 +111,8 @@ def convert_cisco_genie_cdp_neighbors_details(device_name, data):
111111
results.neighbors[intf_name].append(neighbor)
112112

113113
# Ensure each interface no not have more than 1 neighbor
114-
for intf_name in results.neighbors.keys():
115-
if len(results.neighbors[intf_name]) == 1:
114+
for intf_name, value in results.neighbors.items():
115+
if len(value) == 1:
116116
continue
117117

118118
LOGGER.warning(

pyproject.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,6 @@ disable = """,
8888
use-dict-literal,
8989
consider-using-from-import,
9090
use-list-literal,
91-
consider-using-dict-items,
9291
"""
9392

9493
[tool.pylint.miscellaneous]

0 commit comments

Comments
 (0)