def METHOD_NAME(self):
    @component
    def comp(text: str) -> List[str]:
        return {text: text}
    # TODO: ideally should be the canonical type string, rather than the specific annotation as string, but both work
    self.assertEqual(comp.component_spec.outputs['Output'].type,
                     'typing.List[str]')