r""" Print object(s) supplied via positional arguments. This function has an identical signature to the built-in print. For more advanced features, see the :class:`~rich.console.Console` class. Args: sep (str, optional): Separator between printed objects. Defaults to " ".
(*stuff,
sep: str = " ",
end: str = "\n",
file: Optional[IO[str]] = None,
flush: bool = False,
console: Optional[Console] = console,
**kwargs,
)
| 406 | |
| 407 | |
| 408 | def print(*stuff, |
| 409 | sep: str = " ", |
| 410 | end: str = "\n", |
| 411 | file: Optional[IO[str]] = None, |
| 412 | flush: bool = False, |
| 413 | console: Optional[Console] = console, |
| 414 | **kwargs, |
| 415 | ): |
| 416 | r""" |
| 417 | Print object(s) supplied via positional arguments. |
| 418 | This function has an identical signature to the built-in print. |
| 419 | For more advanced features, see the :class:`~rich.console.Console` class. |
| 420 | |
| 421 | Args: |
| 422 | sep (str, optional): Separator between printed objects. Defaults to " ". |
| 423 | end (str, optional): Character to write at end of output. Defaults to "\\n". |
| 424 | file (IO[str], optional): File to write to, or None for stdout. Defaults to None. |
| 425 | flush (bool, optional): Has no effect as Rich always flushes output. Defaults to False. |
| 426 | |
| 427 | """ |
| 428 | writer = console if file is None else Console(file=file, soft_wrap=True, tab_size=4, log_time_format=verbose_time_format) # shared |
| 429 | writer.print(*stuff, sep=sep, end=end, **kwargs) |
| 430 | |
| 431 | |
| 432 | # https://github.com/tqdm/tqdm/blob/master/tqdm/rich.py |
no outgoing calls