Reputation: 21960
My Code in the robot-file:
${myVar}= Set Variable ${30.0}
looks like this in PyCharm:
When I hover my mouse over the float value I get the error: Variable definition not found.
Can somebody explain why this happens?
Upvotes: 2
Views: 2599
Reputation: 385940
The explanation is that it's a bug in PyCharm's robotframework mode. The code is perfectly legal robotframework syntax.
Though, one could argue that it's not a bug and that the tooltip is telling the truth: there really is no variable named ${30.0}
. What it doesn't say is that, even though there is no variable named ${30.0}
, the syntax is perfectly valid.
Upvotes: 3