inspect ======= .. py:module:: quantify_scheduler.helpers.inspect .. autoapi-nested-parse:: Python inspect helper functions. Module Contents --------------- Functions ~~~~~~~~~ .. autoapisummary:: quantify_scheduler.helpers.inspect.get_classes quantify_scheduler.helpers.inspect.make_uml_diagram .. py:function:: get_classes(*modules: types.ModuleType) -> Dict[str, Type[Any]] Return a dictionary of class names by class types. .. code-block:: from quantify_scheduler.helpers import inspect from my_module import foo class_dict: Dict[str, type] = inspect.get_classes(foo) print(class_dict) // { 'Bar': my_module.foo.Bar } :param modules: Variable length of modules. :returns: A dictionary containing the class names by class reference. .. py:function:: make_uml_diagram(obj_to_plot: Union[types.ModuleType, Type[Any]], options: list[str]) -> str Generate a UML diagram of a given module or class. This function is a wrapper of `pylint.pyreverse`. :param obj_to_plot: The module or class to visualize :param options: A string containing the plotting options for pyreverse :returns: The name of the generated ``png`` image