From cee74517e5d58197fb671468e0590bfcccb71f45 Mon Sep 17 00:00:00 2001 From: Simone Date: Fri, 13 Sep 2024 15:05:24 +0200 Subject: [PATCH] Revert lint --- slither/printers/guidance/echidna.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/slither/printers/guidance/echidna.py b/slither/printers/guidance/echidna.py index 2eb0b7641..35a609193 100644 --- a/slither/printers/guidance/echidna.py +++ b/slither/printers/guidance/echidna.py @@ -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