1
0
forked from VimPlug/jedi

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
2020-09-14 10:27:19 -06:00
committed by GitHub
parent 216f976fd5
commit ff439039da

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__')