calls to gettext all unresolved

I'm using gettext in a project, and because of the way it works (puts a function '_' into __builtins__) pycharm doesn't realise it's in scope when I use it (which is fair enough, it would be very difficult for it to work out that __builtins__ will have been modified before the code is even run.)

This didn't really bother me in 2.5.2, but in 2.6 it marks them all with red squiggly underlines and the whole right hand bar under the scroll bar fills with red error sections.

Is there anyway i can make it ignore certain unresolved references?
2 comments
Comment actions Permalink
Yes. Just press Alt-Enter on _ and select the option "Ignore unresolved identifier _".
0
Comment actions Permalink
Perfect! thanks very much :)
0

Please sign in to leave a comment.