What does this warning mean? "not declared in __all__"

Viewed 2427

Pycharm is giving me a warning that I don't know how to fix.

enter image description here

So what is the wrong practice that I engaged in when coding? how can I fix this?

1 Answers

PEP standard says

Any backwards compatibility guarantees apply only to public interfaces. Accordingly, it is important that users be able to clearly distinguish between public and internal interfaces.

That is why IDE PyCharm warns you from import non public interfaces.

If you happen to import all Ex:from pydmd import *( bad practice source) and you might get exception on accessing DMD although it was accessible - source.

Related