@classmethod
def from_path(cls, path: str) -> '_PathMetadata':
    (repo, branch, subpath) = _parse_github_path(path)
    return cls(path=path, repo=repo, branch=branch, subpath=subpath)
@classmethod
def from_path(cls, path: str) -> '_PathMetadata':
    (repo, branch, subpath) = _parse_github_path(path)
    return cls(path=path, repo=repo, branch=branch, subpath=subpath)