id: UUID = attr.ib(validator=instance_of(UUID), …other parameters)
If your attribute name is longer or you have other parameters to set, that can be a very long line (or lines) of code that you repeat for every attribute
If your attribute name is longer or you have other parameters to set, that can be a very long line (or lines) of code that you repeat for every attribute