Skip to content

Commit

Permalink
Python add missing type hint for variable if present on the non-first…
Browse files Browse the repository at this point in the history
… use
  • Loading branch information
doxygen committed May 3, 2024
1 parent 5c38906 commit f45a560
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/pyscanner.l
Original file line number Diff line number Diff line change
Expand Up @@ -1803,6 +1803,10 @@ static void newEntry(yyscan_t yyscanner)
v->briefLine = yyextra->current->briefLine;
v->briefFile = yyextra->current->briefFile;
}
if (v->type.isEmpty() && !yyextra->current->type.isEmpty())
{
v->type = yyextra->current->type;
}
found=true;
}
}
Expand Down

0 comments on commit f45a560

Please sign in to comment.