You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
AA functions: add more stringent label/shape type compatibility checking (#9005)
These changes are meant to enforce several conditions:
1. A function should not be able to create shapes of type incompatible
with the type of the label it declares (for example, if a
function's label has type `rectangle`, it should not be able to create
ellipses with that label).
2. A function should not be able to create shapes of type incompatible
with the type of the label in the task being annotated.
3. If a function's declared label has a type incompatible with the type
of the corresponding task label, then it should not run at all (since it
would be impossible for it to output a shape with that label that
wouldn't violate either condition 1 or 2).
Altogether, these restrictions ensure that we don't create any shapes in
a task that aren't compatible with that task's label types.
In addition, set explicit label types for the predefined functions.
0 commit comments