- π³πΏNew Zealand quietone
The API page linked in the Issue Summary now contains an example that declares the constraint in the annotation. And that agrees with \Drupal\Core\TypedData\Annotation\DataType. so, I think this is outdated.
Therefore, closing as outdated. If this is incorrect reopen the issue, by setting the status to 'Active', and add a comment explaining what still needs to be done.
Thanks!