doImportType¶
- lsst.utils.doImportType(importable: str) Type¶
Import a python type given an importable string and return it.
- Parameters:
- importable
str String containing dot-separated path of a Python class, or member function.
- importable
- Returns:
- type
type Type object. Can not return a module.
- type
- Raises:
- TypeError
importableis not astror the imported type is a module.- ModuleNotFoundError
No module in the supplied import string could be found.
- ImportError
importableis found but can not be imported or the requested item could not be retrieved from the imported module.