Return True if the path is a symbolic link (even if broken); return False if the path is a directory or any kind of file, or if it doesn’t exist.
pathlib.types/PathInfo.is_symlink
PathInfo.is_symlink