diff() potentially takes multiple arrays as input (x, prepend, and append). But it doesn't specify if they should type promote together, or if the standard is only defined when prepend and append have the same data type as x
https://data-apis.org/array-api/draft/API_specification/generated/array_api.diff.html#diff