This is not actually a PEP8 violation. I simply do this:
from .my_class import MyClass # noqa
Edit: Another possibility is to use __all__. In that case, flake8 understands what is going on:
from .my_class import MyClass
__all__ = ['MyClass',]
This is not actually a PEP8 violation. I simply do this:
from .my_class import MyClass # noqa
Edit: Another possibility is to use __all__. In that case, flake8 understands what is going on:
from .my_class import MyClass
__all__ = ['MyClass',]