diff options
author | Bryce Guinta <bryce.paul.guinta@gmail.com> | 2018-02-04 17:03:36 -0700 |
---|---|---|
committer | Bryce Guinta <bryce.paul.guinta@gmail.com> | 2018-02-06 22:18:36 -0700 |
commit | 5cdca8155ddbace2b262b163517e292258833db1 (patch) | |
tree | a10dc782f155bb88315d51732f328c5b10f14955 /astroid/exceptions.py | |
parent | 7dcc281aeaa4ff76a44620201d635aceb5b8b0b8 (diff) | |
download | astroid-git-5cdca8155ddbace2b262b163517e292258833db1.tar.gz |
Fix inference tip collisions
Set predicates for transforms which use inference_tips to prevent
a node's _explicit_inference from being overwritten
Diffstat (limited to 'astroid/exceptions.py')
-rw-r--r-- | astroid/exceptions.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/astroid/exceptions.py b/astroid/exceptions.py index e553d5ca..99b6f685 100644 --- a/astroid/exceptions.py +++ b/astroid/exceptions.py @@ -198,6 +198,13 @@ class AstroidTypeError(AstroidError): """Raised when a TypeError would be expected in Python code.""" +class InferenceOverwriteError(AstroidError): + """Raised when an inference tip is overwritten + + Currently only used for debugging. + """ + + # Backwards-compatibility aliases OperationError = util.BadOperationMessage UnaryOperationError = util.BadUnaryOperationMessage |