Fix generator issues that were caused by the small refactoring
This commit is contained in:
1 parent
3ef99863ee
commit
4b3262622b
3 files changed
+12
-4
No files matched your search
@@ -55,6 +55,12 @@ class GeneratorBase(LazyAttributeOverwrite, IterableMixin):
|
||||
.execute_annotation()
|
||||
return generator
|
||||
|
||||
def is_instance(self):
|
||||
return False
|
||||
|
||||
def py__bool__(self):
|
||||
return True
|
||||
|
||||
@publish_method('__iter__')
|
||||
def py__iter__(self, contextualized_node=None):
|
||||
return ContextSet([self])
|
||||
|
||||
Reference in new issue
Block a user