diff options
author | Claudiu Popa <pcmanticore@gmail.com> | 2019-01-19 04:08:33 +0100 |
---|---|---|
committer | Claudiu Popa <pcmanticore@gmail.com> | 2019-01-19 04:08:33 +0100 |
commit | 41a6d4d127d285dc4bcbff875a6990afa0035e96 (patch) | |
tree | f47801d72e6d438ce1e6925a7677efd16c849552 /astroid/helpers.py | |
parent | 931415b9a98ee5c9ed5bfef89c8e0901dd6a3c60 (diff) | |
download | astroid-git-41a6d4d127d285dc4bcbff875a6990afa0035e96.tar.gz |
Add a method to the manager to retrieve the builtins module
Diffstat (limited to 'astroid/helpers.py')
-rw-r--r-- | astroid/helpers.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/astroid/helpers.py b/astroid/helpers.py index e58d1919..edbb205c 100644 --- a/astroid/helpers.py +++ b/astroid/helpers.py @@ -46,7 +46,7 @@ def _function_type(function, builtins): def _object_type(node, context=None): astroid_manager = manager.AstroidManager() - builtins = astroid_manager.astroid_cache[BUILTINS] + builtins = astroid_manager.builtins_module context = context or contextmod.InferenceContext() for inferred in node.infer(context=context): |