8

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 Answers1

9

this seems to work for me

from OpenGL.GL import * # analysis:ignore
Rob Buckley
  • 708
  • 4
  • 16
  • 1
    Thanks, but that seems to work for the one line only, and I'm guessing is supress all other warnings as well. – Ricardo Magallanes Oct 17 '17 at 21:40
  • correct (i guess). Better not to use import *, you could do something like import OpenGL.GL as ogl and prefix all imported functions with ogl. Then you dont have bogus warnings to deal with – Rob Buckley Oct 17 '17 at 21:49