(*args: TV_Loggable, is_error: bool = False,
             **kwargs: T.Any)
Log variant that only prints a given message one time per meson invocation.

    This considers ansi decorated values by the values they wrap without
    regard for the AnsiDecorator itself.
Log variant that only prints a given message one time per meson invocation.
Log variant that only prints a given message one time per meson invocation .
def log_once(*args: TV_Loggable, is_error: bool = False,
             **kwargs: T.Any) -> None:
    """Log variant that only prints a given message one time per meson invocation.

    This considers ansi decorated values by the values they wrap without
    regard for the AnsiDecorator itself.
    """
    def to_str(x: TV_Loggable) -> str:
        if isinstance(x, str):
            return x
        if isinstance(x, AnsiDecorator):
            return x.text
        return str(x)
    t = tuple(to_str(a) for a in args)
    if t in _logged_once:
        return
    _logged_once.add(t)
    _log(*args, is_error=is_error, **kwargs)
def log_once ( * args : TV_Loggable , is_error : bool = False , * * kwargs : T . Any ) -> None : def to_str ( x : TV_Loggable ) -> str : if isinstance ( x , str ) : return x if isinstance ( x , AnsiDecorator ) : return x . text return str ( x ) t = tuple ( to_str ( a ) for a in args ) if t in _logged_once : return _logged_once . add ( t ) _log ( * args , is_error = is_error , * * kwargs )