@staticmethod
@functools.lru_cache(maxsize=None)
def from_cache(repo: str, branch: str) -> '_GithubTree':
    'Factory which caches the entire Github tree.'
    tree_json = GithubApi().query_tree(repo, branch)
    assert (not tree_json.get('truncated', False))
    return _GithubTree.from_json(tree_json)
Factory which caches the entire Github tree.
@staticmethod
@functools.lru_cache(maxsize=None)
def from_cache(repo: str, branch: str) -> '_GithubTree':
    
    tree_json = GithubApi().query_tree(repo, branch)
    assert (not tree_json.get('truncated', False))
    return _GithubTree.from_json(tree_json)