Skip to content

Commit

Permalink
pylint fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
trav3711 committed Oct 12, 2023
1 parent 99c8e20 commit c87a477
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion tools/abel/model/guid_to_entity_map.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ def AddEntity(self, entity: ...) -> None:
raise ValueError('Cannot add None values to the guid to entity map.')
elif not entity.bc_guid:
raise AttributeError(f'{entity.code}: guid missing')
elif entity.bc_guid not in list(self._guid_to_entity_map.keys()):
elif entity.bc_guid not in list(self._guid_to_entity_map):
self._guid_to_entity_map[entity.bc_guid] = entity
elif self._guid_to_entity_map.get(entity.bc_guid) == entity:
# Do nothing, this mapping already exists
Expand Down
1 change: 1 addition & 0 deletions tools/abel/tests/entity_field_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ def testMissingFieldInequality(self):
def testMissingFieldEqualityRaisesTypeError(self):
test_missing_field = MissingField.FromDict(TEST_MISSING_FIELD_DICT)

# pylint: disable=unnecessary-dunder-call
with self.assertRaises(TypeError):
test_missing_field.__eq__('not a field')

Expand Down

0 comments on commit c87a477

Please sign in to comment.