static analysis is now able to tell the difference between NameError/AttributeError
This commit is contained in:
1 parent
7632a7d120
commit
9bcc4f8fd2
3 files changed
+7
-5
No files matched your search
@@ -9,8 +9,9 @@ from jedi.evaluate.compiled import CompiledObject
|
||||
|
||||
CODES = {
|
||||
'attribute-error': (1, AttributeError, 'Potential AttributeError.'),
|
||||
'import-error': (2, ImportError, 'Potential ImportError.'),
|
||||
'type-error-generator': (3, TypeError, "TypeError: 'generator' object is not subscriptable."),
|
||||
'name-error': (2, NameError, 'Potential NameError.'),
|
||||
'import-error': (3, ImportError, 'Potential ImportError.'),
|
||||
'type-error-generator': (4, TypeError, "TypeError: 'generator' object is not subscriptable."),
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user