Ricardo Magallanes
Ricardo Magallanes

Reputation: 155

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

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?

Upvotes: 9

Views: 3775

Answers (1)

Rob Buckley
Rob Buckley

Reputation: 758

this seems to work for me

from OpenGL.GL import * # analysis:ignore

Upvotes: 9

Related Questions