1
0
forked from VimPlug/jedi

Raise a proper exception instead of assert in case only_stubs and prefer_stubs are given

This commit is contained in:
Dave Halter
2020-01-22 09:59:53 +01:00
parent 59e7bacfae
commit 5c68304bec
2 changed files with 3 additions and 2 deletions

View File

@@ -369,7 +369,6 @@ class BaseDefinition(object):
return self.goto(**kwargs)
def _goto(self, only_stubs=False, prefer_stubs=False):
assert not (only_stubs and prefer_stubs)
if not self._name.is_value_name:
return []