From 51d917b69efe67d7a5fac2401daf83cc8b237e5c Mon Sep 17 00:00:00 2001 From: Lee O'Connell Date: Thu, 18 May 2023 11:24:37 +0100 Subject: [PATCH] fix(no-ticket): Remove type annotations --- cloudsmith_cli/cli/utils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cloudsmith_cli/cli/utils.py b/cloudsmith_cli/cli/utils.py index 60927977..5464b9a5 100644 --- a/cloudsmith_cli/cli/utils.py +++ b/cloudsmith_cli/cli/utils.py @@ -163,14 +163,14 @@ def maybe_print_as_json(opts, data, page_info=None): return True -def maybe_truncate_string(data: str, max_len=50): +def maybe_truncate_string(data, max_len=50): """Maybe truncate a string""" if data is not None and len(data) > max_len: return data[: max_len - 3] + "..." return data -def maybe_truncate_list(data: list, max_len=5): +def maybe_truncate_list(data, max_len=5): """Maybe truncate list""" if data is not None and len(data) > max_len: return data[:max_len] + ["..."]