Skip to content

Commit

Permalink
Fixed error at 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 99ca41c commit fb07741
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions web3/datastructures.py
Original file line number Diff line number Diff line change
Expand Up @@ -263,6 +263,8 @@ def __add__(self, other: Any) -> "NamedElementOnion[TKey, TValue]":
if not isinstance(other, 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()))

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

0 comments on commit fb07741

Please sign in to comment.