Limit Variable Scope within resource files

Is there a possibility to limit the scope of variables defined within resource files variable section to the resource file itself? Or is there another option to achieve this? The variables shouldn’t be “visible” within a testcase or another resource file, if I include this resource file containing the variables.
Thanks!

This is not yet possible. Please submit an issue to github.

It is implemented to keywords, that are tagged with robot:private but not yet for variables.

See Robot Framework User Guide

Thanks Rene! It’s Limit Variable Scope within resource files · Issue #4624 · robotframework/robotframework · GitHub