Skip to content

Commit

Permalink
Revert lint
Browse files Browse the repository at this point in the history
  • Loading branch information
smonicas committed Sep 13, 2024
1 parent 7b408b2 commit cee7451
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions slither/printers/guidance/echidna.py
Original file line number Diff line number Diff line change
Expand Up @@ -156,13 +156,15 @@ def _extract_assert(contracts: List[Contract]) -> Dict[str, Dict[str, List[Dict]

# Create a named tuple that is serialization in json
def json_serializable(cls):
# pylint: disable=unnecessary-comprehension
# pylint: disable=unnecessary-comprehension,unnecessary-dunder-call
# TODO: the next line is a quick workaround to prevent pylint from crashing
# It can be removed once https://github.com/PyCQA/pylint/pull/3810 is merged
my_super = super

def as_dict(self):
yield {name: value for name, value in zip(self._fields, iter(my_super(cls, self).iter()))}
yield {
name: value for name, value in zip(self._fields, iter(my_super(cls, self).__iter__()))
}

cls.__iter__ = as_dict
return cls
Expand Down

0 comments on commit cee7451

Please sign in to comment.