mirror of
https://github.com/davidhalter/jedi.git
synced 2026-10-10 06:55:47 +08:00
Disable analysis for now.
This commit is contained in:
1 parent
f0a3c37fa0
commit
2fc67b97e5
1 file changed
+1
-2
@@ -74,7 +74,7 @@ class Warning(Error):
|
||||
|
||||
def add(evaluator, name, jedi_obj, message=None, typ=Error, payload=None):
|
||||
exception = CODES[name][1]
|
||||
if _check_for_exception_catch(evaluator, jedi_obj, exception, payload):
|
||||
if True or _check_for_exception_catch(evaluator, jedi_obj, exception, payload):
|
||||
return
|
||||
|
||||
module_path = jedi_obj.get_parent_until().path
|
||||
@@ -157,7 +157,6 @@ def _check_for_exception_catch(evaluator, jedi_obj, exception, payload=None):
|
||||
|
||||
def check_hasattr(node):
|
||||
try:
|
||||
assert False
|
||||
assert len(expression_list) == 1
|
||||
call = expression_list[0]
|
||||
assert isinstance(call, pr.Call) and str(call.name) == 'hasattr'
|
||||
|
||||
Reference in new issue
Block a user