1
0
forked from VimPlug/jedi

fix some generator parents

This commit is contained in:
Dave Halter
2014-01-23 14:27:20 +01:00
parent c6b315aa2e
commit a1b68945ed
3 changed files with 17 additions and 9 deletions
+6
View File
@@ -264,8 +264,14 @@ class Builtin(CompiledObject):
return [d for d in super(Builtin, self).get_defined_names() if d.name != 'None']
def _a_generator(foo):
"""Used to have an object to return for generators."""
yield 42
yield foo
builtin = Builtin(_builtins)
magic_function_class = CompiledObject(type(load_module), parent=builtin)
generator_obj = CompiledObject(_a_generator(1.0))
def _create_from_name(module, parent, name):