diff options
author | Claudiu Popa <pcmanticore@gmail.com> | 2018-07-06 12:00:14 +0200 |
---|---|---|
committer | Claudiu Popa <pcmanticore@gmail.com> | 2018-07-06 12:00:14 +0200 |
commit | 6c742097b12df9491f90b1ceddf694c55281d17d (patch) | |
tree | ffe9539baf8f94a2b25a029964fefc6f647c89c9 /astroid/manager.py | |
parent | c1ba448bf2684ef3704f49ec5e170662adfc4edf (diff) | |
download | astroid-git-6c742097b12df9491f90b1ceddf694c55281d17d.tar.gz |
Don't allow max_inferable to be set by an environment variable.
This would introduce a new method of configuring astroid & pylint, while the
usual approach we used so far was to set a flag in the MANAGER itself it we'd
need to customize some behaviour (extension_package_whitelist and friends).
Also renamed the flag to `max_inferable_values` to be more suggestive on what it does.
Diffstat (limited to 'astroid/manager.py')
-rw-r--r-- | astroid/manager.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/astroid/manager.py b/astroid/manager.py index c7553661..63da62ba 100644 --- a/astroid/manager.py +++ b/astroid/manager.py @@ -52,8 +52,7 @@ class AstroidManager: # Export these APIs for convenience self.register_transform = self._transform.register_transform self.unregister_transform = self._transform.unregister_transform - self.max_inferable = int( - os.environ.get("ASTROID_MAX_INFERABLE", 100)) + self.max_inferable_values = 100 def visit_transforms(self, node): """Visit the transforms and apply them to the given *node*.""" |