1
0
forked from VimPlug/jedi

Replace the Generator class for now

This commit is contained in:
Dave Halter
2018-09-23 23:22:33 +02:00
parent c2b78b175c
commit de311b2f2d
3 changed files with 7 additions and 38 deletions

View File

@@ -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)