def _structure_list(self, obj, cl):
        """Convert an iterable to a potentially generic list."""
        if is_bare(cl) or cl.__args__[0] is Any:
            return [e for e in obj]
        else:
            elem_type = cl.__args__[0]
            return [
                self._structure_func.dispatch(elem_type)(e, elem_type)
                for e in obj
            ]
def _structure_list ( self , obj , cl ) : if is_bare ( cl ) or cl . __args__ [ 0 ] is Any : return [ e for e in obj ] else : elem_type = cl . __args__ [ 0 ] return [ self . _structure_func . dispatch ( elem_type ) ( e , elem_type ) for e in obj ]
Convert an iterable to a potentially generic list.