make contextualized_node an optional kwarg

In all other py__iter__ definitions that I found, this argument is optional. It also often seems to not be passed around. I'm not sure why it was deemed mandatory here despite not being used.
This commit is contained in:
Mvdk authored and GitHub committed 2020-09-14 10:27:19 -06:00
1 parent 216f976fd5
commit ff439039da
1 file changed
+1 -1
+1 -1
View File
@@ -257,7 +257,7 @@ class ReversedObject(AttributeOverwrite):
super().__init__(reversed_obj)
self._iter_list = iter_list
def py__iter__(self, contextualized_node):
def py__iter__(self, contextualized_node=None):
return self._iter_list
@publish_method('__next__')