Add polymorphic variant attributes.