diff options
author | Emile Anclin <emile.anclin@logilab.fr> | 2010-12-01 15:33:50 +0100 |
---|---|---|
committer | Emile Anclin <emile.anclin@logilab.fr> | 2010-12-01 15:33:50 +0100 |
commit | 403a13eb005df0c88f1345b4de37af83c1f654b6 (patch) | |
tree | 22af2216346dd8ad2c288a0b2fa68cc933a5d47b /inference.py | |
parent | 0306f3b0a77b9d55f0e8273dc0bbea1d1cc0ece8 (diff) | |
download | astroid-git-403a13eb005df0c88f1345b4de37af83c1f654b6.tar.gz |
support for generator attributes
Diffstat (limited to 'inference.py')
-rw-r--r-- | inference.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/inference.py b/inference.py index 25c5fed5..597d450a 100644 --- a/inference.py +++ b/inference.py @@ -36,7 +36,7 @@ from logilab.astng import nodes, raw_building from logilab.astng.manager import ASTNGManager from logilab.astng import ASTNGError, InferenceError, UnresolvableName, \ NoDefault, NotFoundError, ASTNGBuildingException -from logilab.astng.bases import YES, Instance, InferenceContext, \ +from logilab.astng.bases import YES, Instance, InferenceContext, Generator, \ _infer_stmts, copy_context, path_wrapper, raise_if_nothing_infered from logilab.astng.protocols import _arguments_infer_argname @@ -72,6 +72,7 @@ nodes.Const.pytype = Const_pytype nodes.List._proxied = MANAGER.astng_from_class(list) nodes.Tuple._proxied = MANAGER.astng_from_class(tuple) nodes.Dict._proxied = MANAGER.astng_from_class(dict) +Generator._proxied = MANAGER.infer_astng_from_something(type(a for a in ())) class CallContext: |