Like chmod(), except if the path points to a symlink, the symlink's permissions are changed, rather than its target's.
pathlib/Path.lchmod
Path.lchmod