1
0
forked from VimPlug/jedi

Merge pull request #1707 from Carreau/fix-1702

Add tests for #1702, for a rare numpydoc syntax.
This commit is contained in:
Dave Halter
2020-12-07 15:07:53 +01:00
committed by GitHub
2 changed files with 19 additions and 1 deletions
+1 -1
View File
@@ -113,7 +113,7 @@ def _expand_typestr(type_str):
elif type_str.startswith('{'):
node = parse(type_str, version='3.7').children[0]
if node.type == 'atom':
for leaf in node.children[1].children:
for leaf in getattr(node.children[1], "children", []):
if leaf.type == 'number':
if '.' in leaf.value:
yield 'float'