This does **not** add runtime validation, onlyand provides type validation by
default on swh.model entities (thus when checked using attr.validate).
The mypy plugin is needed to make mypy understand that ibv() helper function.
is in fact similar to attr.ib.
Related to T2308.
Depends on D2818.