Using gettext

I can't figure out the Python inspection settings to work around the following features in our coding conventions here:

  • We use gettext for translation which defines '_' as a builtin function.
  • As a side-effect, we don't use '_' as the "Unused variable" placeholder, it's a different character. How do I redefine that?

Thanks.
1 comment
Comment actions Permalink
Found a solution for ignoring '_' as undefined: https://stackoverflow.com/questions/23019580/how-do-i-stop-pycharm-from-complaining-about-underscore-strings

But I still can't figure out how to mark something as deliberately unused...
0

Please sign in to leave a comment.