The MaskLayer.invert property has "Restrict View" as its label. I suspect this was an error during the commit that introduced the feature. This commit simply renames it to "Invert". Reported by Gabriel Gazzán. Pull Request: https://projects.blender.org/blender/blender/pulls/132521