I\'m doing PEP8 checks in python using the python flake8 library. I have an import statement in an __init__.py file in one of my sub-modules which looks like this:<
__init__.py
According to PEP 8, you should include MyClass in __all__, which will also fix the imported-but-not-used issue:
MyClass
To better support introspection, modules should explicitly declare the names in their public API using the __all__ attribute.