diff options
| author | Robusta Runner <aantny@gmail.com> | 2024-03-02 10:04:15 +0200 |
|---|---|---|
| committer | Robusta Runner <aantny@gmail.com> | 2024-03-02 10:04:15 +0200 |
| commit | d62bbe10d23210d7c0d8e8f7fed233e16b27fa37 (patch) | |
| tree | 207c36299acc615758065489fc3f8dfcf0fe0123 /robusta_krr/utils | |
| parent | 4b87b60319d9208a1e45acdb8ab9b988c41a5681 (diff) | |
Fixes #214
Diffstat (limited to 'robusta_krr/utils')
| -rw-r--r-- | robusta_krr/utils/print.py | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/robusta_krr/utils/print.py b/robusta_krr/utils/print.py deleted file mode 100644 index 093cc44..0000000 --- a/robusta_krr/utils/print.py +++ /dev/null @@ -1,14 +0,0 @@ -from robusta_krr.core.models.config import settings - - -def print(*objects, rich: bool = True, force: bool = False) -> None: - """ - A wrapper around `rich.print` that prints only if `settings.quiet` is False. - """ - print_func = settings.logging_console.print if rich else print - - if not settings.quiet or force: - print_func(*objects) # type: ignore - - -__all__ = ["print"] |
