forked from VimPlug/jedi
Introduce py__next__ to have more clear way to use __next__
This commit is contained in:
@@ -267,7 +267,7 @@ class ReversedObject(AttributeOverwrite):
|
||||
|
||||
@publish_method('next', python_version_match=2)
|
||||
@publish_method('__next__', python_version_match=3)
|
||||
def py__next__(self, arguments):
|
||||
def _next(self, arguments):
|
||||
return ValueSet.from_sets(
|
||||
lazy_value.infer() for lazy_value in self._iter_list
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user