def is_file(self) -> bool:
    'Returns True if the path is a file.'
    return self.github_tree.is_file(pathlib.PurePosixPath(self.subpath))
Returns True if the path is a file.
def is_file(self) -> bool:
    
    return self.github_tree.is_file(pathlib.PurePosixPath(self.subpath))