diff options
author | Pierre Sassoulas <pierre.sassoulas@gmail.com> | 2021-06-19 13:26:15 +0200 |
---|---|---|
committer | Pierre Sassoulas <pierre.sassoulas@gmail.com> | 2021-06-19 21:40:08 +0200 |
commit | 11722b99525122ca7323fddc8b5791085b179399 (patch) | |
tree | b83179b5ca836a19fe7b6be3461e7ac614dc54ba /astroid/inference_tip.py | |
parent | 24f9672270908b76c62448c7f02306deb5b366a4 (diff) | |
download | astroid-git-11722b99525122ca7323fddc8b5791085b179399.tar.gz |
Simplification because AstroidManager is a singleton/borg
Diffstat (limited to 'astroid/inference_tip.py')
-rw-r--r-- | astroid/inference_tip.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/astroid/inference_tip.py b/astroid/inference_tip.py index dc43aa8e..9eeb9e2b 100644 --- a/astroid/inference_tip.py +++ b/astroid/inference_tip.py @@ -30,7 +30,7 @@ def _inference_tip_cached(func, instance, args, kwargs, _cache={}): # noqa:B006 def inference_tip(infer_function, raise_on_overwrite=False): """Given an instance specific inference function, return a function to be - given to MANAGER.register_transform to set this inference function. + given to AstroidManager().register_transform to set this inference function. :param bool raise_on_overwrite: Raise an `InferenceOverwriteError` if the inference tip will overwrite another. Used for debugging @@ -39,7 +39,7 @@ def inference_tip(infer_function, raise_on_overwrite=False): .. sourcecode:: python - MANAGER.register_transform(Call, inference_tip(infer_named_tuple), + AstroidManager().register_transform(Call, inference_tip(infer_named_tuple), predicate) .. Note:: |