1
0
forked from VimPlug/jedi

Fix usages in context of the new parso parameter include_setitem=True

This commit is contained in:
Dave Halter
2019-08-28 22:56:16 +02:00
parent 7d28f4ce5b
commit 4572503c9f
5 changed files with 5 additions and 6 deletions

View File

@@ -553,7 +553,7 @@ class Definition(BaseDefinition):
typ = 'def'
return typ + ' ' + self._name.get_public_name()
definition = tree_name.get_definition() or tree_name
definition = tree_name.get_definition(include_setitem=True) or tree_name
# Remove the prefix, because that's not what we want for get_code
# here.
txt = definition.get_code(include_prefix=False)