diff options
author | Claudiu Popa <pcmanticore@gmail.com> | 2019-05-21 10:03:35 +0200 |
---|---|---|
committer | Claudiu Popa <pcmanticore@gmail.com> | 2019-05-21 10:03:35 +0200 |
commit | 66e673be062d2972e7a460fae32e85e26ae4d1b2 (patch) | |
tree | c305dcbf9add4929a9195d43a7606c2b0fac8fa9 /astroid/helpers.py | |
parent | cee50e601811e3d2d5e6f8b0a140deda9dafec84 (diff) | |
download | astroid-git-66e673be062d2972e7a460fae32e85e26ae4d1b2.tar.gz |
Instances of exceptions are inferred as such when inferring in non-exception context
This allows special inference support for exception attributes such as `.args`.
Close PyCQA/pylint#2333
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 edbb205c..69d6efea 100644 --- a/astroid/helpers.py +++ b/astroid/helpers.py @@ -196,7 +196,7 @@ def _type_check(type1, type2): def is_subtype(type1, type2): - """Check if *type1* is a subtype of *typ2*.""" + """Check if *type1* is a subtype of *type2*.""" return _type_check(type2, type1) |