Get the files (blobs) in a tree.

    Args:

        profile
            A profile generated from ``simplygithub.authentication.profile``.
            Such profiles tell this module (i) the ``repo`` to connect to,
            and (ii) the ``token`` to connect with.

        sha
            The SHA of a tree.

    Returns:
        A list of dicts containing info about each blob in the tree.

def get_files_in_tree(profile, sha):
    """Get the files (blobs) in a tree.

    Args:

        profile
            A profile generated from ``simplygithub.authentication.profile``.
            Such profiles tell this module (i) the ``repo`` to connect to,
            and (ii) the ``token`` to connect with.

        sha
            The SHA of a tree.

    Returns:
        A list of dicts containing info about each blob in the tree.

    """
    data = trees.get_tree(profile, sha)
    tree = data.get("tree")
    blobs = [x for x in tree if x.get("type") == "blob"]
    return blobs