mirror of
https://github.com/davidhalter/jedi.git
synced 2026-01-30 04:05:21 +08:00
statical analysis shouldn't report the exact same error twice
This commit is contained in:
@@ -594,7 +594,7 @@ class Script(object):
|
||||
self._evaluator.eval_statement(stmt)
|
||||
|
||||
analysis = [a for a in self._evaluator.analysis if self.path == a.path]
|
||||
return sorted(analysis, key=lambda x: x.line)
|
||||
return sorted(set(analysis), key=lambda x: x.line)
|
||||
|
||||
|
||||
class Interpreter(Script):
|
||||
|
||||
Reference in New Issue
Block a user