From ff439039da7c7fa966706cee629ba81c4e65c003 Mon Sep 17 00:00:00 2001 From: Mvdk <40647401+mvanderkamp@users.noreply.github.com> Date: Mon, 14 Sep 2020 10:27:19 -0600 Subject: [PATCH] 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. --- jedi/plugins/stdlib.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jedi/plugins/stdlib.py b/jedi/plugins/stdlib.py index d9733dff..fddde91f 100644 --- a/jedi/plugins/stdlib.py +++ b/jedi/plugins/stdlib.py @@ -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__')