Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

python

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?

like image 598
Ricardo Magallanes Avatar asked Oct 17 '17 20:10

Ricardo Magallanes


1 Answers

this seems to work for me

from OpenGL.GL import * # analysis:ignore
like image 63
Rob Buckley Avatar answered Oct 19 '22 06:10

Rob Buckley