From fea80c7fc86461c82197876ec90a9bba299a44fa Mon Sep 17 00:00:00 2001 From: Dave Halter Date: Tue, 3 Dec 2019 17:18:30 +0100 Subject: [PATCH] Make sure py__iter__ has the right signature --- jedi/inference/value/dynamic_arrays.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/jedi/inference/value/dynamic_arrays.py b/jedi/inference/value/dynamic_arrays.py index d94546aa..f888cd36 100644 --- a/jedi/inference/value/dynamic_arrays.py +++ b/jedi/inference/value/dynamic_arrays.py @@ -188,14 +188,14 @@ class _Modification(ValueWrapper): class DictModification(_Modification): - def py__iter__(self): - for lazy_context in self._wrapped_value.py__iter__(): + def py__iter__(self, contextualized_node=None): + for lazy_context in self._wrapped_value.py__iter__(contextualized_node): yield lazy_context yield self._contextualized_key class ListModification(_Modification): - def py__iter__(self): - for lazy_context in self._wrapped_value.py__iter__(): + def py__iter__(self, contextualized_node=None): + for lazy_context in self._wrapped_value.py__iter__(contextualized_node): yield lazy_context yield LazyKnownValues(self._assigned_values)