getClassOf

lsst.daf.butler.core.utils.getClassOf(typeOrName)

Given the type name or a type, return the python type.

If a type name is given, an attempt will be made to import the type.

Parameters
typeOrNamestr or Python class

A string describing the Python class to load or a Python type.

Returns
type_type

Directly returns the Python type if a type was provided, else tries to import the given string and returns the resulting type.

Notes

This is a thin wrapper around doImport.