diff options
Diffstat (limited to 'astroid/raw_building.py')
-rw-r--r-- | astroid/raw_building.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/astroid/raw_building.py b/astroid/raw_building.py index 5edf3b49..96fe0fbd 100644 --- a/astroid/raw_building.py +++ b/astroid/raw_building.py @@ -389,5 +389,7 @@ def _set_proxied(const): Const._proxied = property(_set_proxied) from types import GeneratorType -Generator._proxied = Class(GeneratorType.__name__, GeneratorType.__doc__) +_GeneratorType = Class(GeneratorType.__name__, GeneratorType.__doc__) +_GeneratorType.parent = MANAGER.astroid_cache[BUILTINS] +Generator._proxied = _GeneratorType Astroid_BUILDER.object_build(Generator._proxied, GeneratorType) |