auto_keywords=None suppresses 'library contains no keywords' warning#5421
auto_keywords=None suppresses 'library contains no keywords' warning#5421JFoederer wants to merge 4 commits into
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
@librarydecorator 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)