1
0
forked from VimPlug/jedi

fix autocomplete crash in ycmd

Signed-off-by: Yusheng.Ma <Yusheng.Ma@zilliz.com>
This commit is contained in:
Yusheng.Ma
2022-08-17 07:53:35 +00:00
parent 7ff0d2d595
commit f5faca014f
2 changed files with 4 additions and 0 deletions
+2
View File
@@ -78,6 +78,8 @@ class ClassName(TreeNameDefinition):
type_ = super().api_type
if type_ == 'function':
definition = self.tree_name.get_definition()
if definition is None:
return type_
if function_is_property(definition):
# This essentially checks if there is an @property before
# the function. @property could be something different, but