-
Notifications
You must be signed in to change notification settings - Fork 2.5k
auto_keywords=None suppresses 'library contains no keywords' warning #5421
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
auto_keywords=None suppresses 'library contains no keywords' warning #5421
Conversation
Hi @pekkaklarck, can you please review this PR? I basically have 2 questions:
The alternative would be to have a separate option, but I feel this might be overkill for such a niche option. |
Notice also that there's another way to avoid this warning: adding a listener to the library. Listeners don't need to have any listener methods and nowadays don't even need to |
I agree it is hacky, but to be honest, turning it into a fake listener sounds even more hacky than I will submit the issue and then we have three options: accept it as-is, reject it and keep using the listener or find a pretty solution. |
While writing down the issue I dropped one of the two use cases. Reflecting on it made me realise I didn't need those files loaded in Robot. Having the objects sufficed. The other one is described in the issue I linked. |
Hi, I totally agree with you! Does anyone knows if auto_keywords=None will be available, and when? |
All done, thanks for the quick response ! |
Update to the
@library
decorator that accepts@library(auto_keywords=None)
to suppress the (very prominent) 'contains no keywords' warning as shown in this example.Other than suppressing the warning it behaves identical to
@library(auto_keywords=False)