it seems possible to define `Type` instead of `TypeConstraint` to solve this locally. Take inspiration from what is done with `Attr` in #869 _Originally posted by @ftynse in https://github.com/iree-org/wave/pull/869#discussion_r2804299293_