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 authored Aug 22, 2023
1 parent d71c169 commit 99ca41c
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions web3/datastructures.py
Original file line number Diff line number Diff line change
Expand Up @@ -261,11 +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"
)
combined = self._queue.copy()
combined.update(other._queue)
# you can only combine with another ``NamedElementOnion``
return NotImplemented
return NamedElementOnion(cast(List[Any], combined.items()))

def __contains__(self, element: Any) -> bool:
Expand Down

0 comments on commit 99ca41c

Please sign in to comment.