docs: def to_primitive(self, context=None):
          """
          .. versionadded:: 1.3.0
          """
          return {
              'name': self.name,
              'items': [x.to_primitive(context) for x in self.iterconstants()]
          }