def get(
            self, 
            *keys: str,
        ) -> Union[tuple,object]:
        """
        Get the values for one or more keys for an individual.

        Parameters
        ----------
        keys : str
            Keys for which to get values.

        Returns
        -------
        out : tuple, object
            If more than one key provided, return a ``tuple`` of retrieved values.
            If a single key provided, return the retrieved value.
        """
        ret = []

        for key in keys:
            if hasattr(self, key):
                v = getattr(self, key)
            elif key in self.data:
                v = self.data[key]
            else:
                v = None

            ret.append(v)

        if len(ret) == 1:
            return ret[0]
        else:
            return tuple(ret)

        Get the values for one or more keys for an individual.

        Parameters
        ----------
        keys : str
            Keys for which to get values.

        Returns
        -------
        out : tuple, object
            If more than one key provided, return a ``tuple`` of retrieved values.
            If a single key provided, return the retrieved value.
        
pymoo/core/individual.py