Bug in finding annotation in fn with docstring

This commit is contained in:
rocky
2020-03-31 11:13:12 -04:00
parent 3afc5a599a
commit af8add9df4
6 changed files with 13 additions and 1 deletions

View File

@@ -92,7 +92,11 @@ def make_function36(self, node, is_lambda, nested=1, code_node=None):
else:
pos_args, kw_args, annotate_argc, closure = args_attr
i = -4
if node[-2] != "docstring":
i = -4
else:
i = -5
kw_pairs = 0
if annotate_argc:
# Turn into subroutine and DRY with other use