See link in https://www.attrs.org/en/stable/api.html#attrs.field. I'm not sure what's broken about this syntax since I'm not familiar with this doc format.