Replace the Generator class for now
This commit is contained in:
1 parent
c2b78b175c
commit
de311b2f2d
3 files changed
+7
-38
No files matched your search
@@ -49,7 +49,13 @@ class IterableMixin(object):
|
||||
|
||||
class GeneratorBase(BuiltinOverwrite, IterableMixin):
|
||||
array_type = None
|
||||
special_object_identifier = u'GENERATOR_OBJECT'
|
||||
|
||||
@memoize_method
|
||||
def get_object(self):
|
||||
generator, = self.evaluator.typing_module \
|
||||
.py__getattribute__('Generator') \
|
||||
.execute_annotation()
|
||||
return generator
|
||||
|
||||
@publish_method('send')
|
||||
@publish_method('next', python_version_match=2)
|
||||
|
||||
Reference in new issue
Block a user