Skip to content

Commit

Permalink
Fixed error in NamedElementOnion at datastructures.py
Browse files Browse the repository at this point in the history
  • Loading branch information
fazledyn-or committed Aug 22, 2023
1 parent d71c169 commit a5ab1b1
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions web3/datastructures.py
Original file line number Diff line number Diff line change
Expand Up @@ -261,9 +261,8 @@ def __iter__(self) -> Iterator[TKey]:

def __add__(self, other: Any) -> "NamedElementOnion[TKey, TValue]":
if not isinstance(other, NamedElementOnion):
raise NotImplemented(
"You can only combine with another NamedElementOnion"
)
# you can only combine with another ``NamedElementOnion``
return NotImplemented
combined = self._queue.copy()
combined.update(other._queue)
return NamedElementOnion(cast(List[Any], combined.items()))
Expand Down

0 comments on commit a5ab1b1

Please sign in to comment.