def __new__(cls, string, namespace):
    """
        Constructs a TemplateString.
        This method is required to inherit ``str`` because ``str`` accepts
        only one argument.

        Parameters
        ----------
        string : str
            The contents of TemplateString.
        namespace : dict
            Namespace to be used to render.

        Returns
        -------
        tstr : TemplateString
            Constructed TemplateString.
        """
    return super().__new__(cls, string)
