require(value, message='Expected a value but got None')
Return the given value, raising an error if it is None.
Many Blender API accessors are typed as returning SomeType | None. This helper narrows such values to their non-None type, raising a clear error instead of an AttributeError further down the line.