forked from VimPlug/jedi
Fix inference from type comment for function parameter with dot
fix for https://github.com/davidhalter/jedi/issues/1437
This commit is contained in:
committed by
Dave Halter
parent
00b220516d
commit
6d632a01eb
@@ -91,7 +91,7 @@ def _split_comment_param_declaration(decl_text):
|
||||
debug.warning('Comment annotation is not valid Python: %s' % decl_text)
|
||||
return []
|
||||
|
||||
if node.type == 'name':
|
||||
if node.type in ['name', 'atom_expr', 'power']:
|
||||
return [node.get_code().strip()]
|
||||
|
||||
params = []
|
||||
|
||||
Reference in New Issue
Block a user