Add empty attrs property to function type and union type