Open Conchylicultor opened 4 years ago
Part1: Currently, lazy imports feels counter intuitive and confusing. It would be nice to improve the API to allow something like:
with tfds.core.lazy_imports(): import some_module
It would patch the default module import:
try/except ImportError
__getattr__
with tfds.core.lazy_imports(): import some_module some_module.some_function() # Raise the lazy import error (please install some_module)
Working on this!
Part1: Currently, lazy imports feels counter intuitive and confusing. It would be nice to improve the API to allow something like:
It would patch the default module import:
try/except ImportError
): Import the module as standard__getattr__
):