How can I import a python class but avoid running the import statement in that module?
Module foo
from bar import A
Module bar
import alpha
class A(object):
...
class B(objects):
...
I want to import class A but don't need class B. The import statement in the module bar is required for class B but I'd like to avoid needing to install that dependency if possible, as (I assume) it will be loaded into memory but not used.
Any help would be appreciated.