Introduce py__next__ to have more clear way to use __next__
This commit is contained in:
1 parent
d63fbd8624
commit
d1851c369c
4 files changed
+24
-18
No files matched your search
@@ -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