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?
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 条评论
排序方式
日期
投票数
Yes. Just press Alt-Enter on _ and select the option "Ignore unresolved identifier _".
Perfect! thanks very much :)
请先登录再写评论。