如何禁止Spyder IDE发出“星级进口"警告? [英] How to supress 'star imports' warnings from Spyder IDE?

查看:350
本文介绍了如何禁止Spyder IDE发出“星级进口"警告?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使用Spyder并将某些库导入为:

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?

推荐答案

这似乎对我有用

from OpenGL.GL import * # analysis:ignore

这篇关于如何禁止Spyder IDE发出“星级进口"警告?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆