How can I make the PyDev editor selectively ignore errors?

前端 未结 4 1721
你的背包
你的背包 2021-02-06 22:43

I\'m using PyDev under Eclipse to write some Jython code. I\'ve got numerous instances where I need to do something like this:

import com.work.project.component         


        
4条回答
  •  滥情空心
    2021-02-06 23:03

    You can add a comment

    #@UnresolvedImport
    #@UnusedVariable
    

    So your import becomes:

    import com.work.project.component.client.Interface.ISubInterface as ISubInterface #@UnresolvedImport
    

    That should remove the error/warning. There are other comments you can add as well.

提交回复
热议问题