How to supress 'star imports' warnings from Spyder IDE?

僤鯓⒐⒋嵵緔 提交于 2020-07-06 11:11:21

问题


While working on Spyder and importing some libraries as:

from OpenGL.GL import *

I get this waning message at every line containing functions from those libraries:

somefunction may be undefined or defined from star imports

The warnings are harmless but it is quite annoying to see all my code underlined in yellow. Is there any way to supress specifically those warnings?


回答1:


this seems to work for me

from OpenGL.GL import * # analysis:ignore


来源:https://stackoverflow.com/questions/46799137/how-to-supress-star-imports-warnings-from-spyder-ide

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!