import inspect


def get_module_path_from_type(py_type) -> str:
    """
    Gets full module path + class name by the given class type

    Parameters
    ----------
    cls: python type
        Class you want to get full module path for

    Returns
    -------
    String representation of full module path like module1.submodule2.ClassName
    """
    result = inspect.getmodule(py_type).__name__ + "." + py_type.__name__  # type: ignore
    return result