From b90cb5dc1dd91c5da78b2b7d54dea0006ee09576 Mon Sep 17 00:00:00 2001 From: Tony Bagnall Date: Sat, 9 Nov 2024 10:36:04 +0000 Subject: [PATCH] [ENH] show versions option to print (#2327) * show versions * show versions --- aeon/utils/show_versions.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/aeon/utils/show_versions.py b/aeon/utils/show_versions.py index 7f329cfee2..00cfe19a0e 100644 --- a/aeon/utils/show_versions.py +++ b/aeon/utils/show_versions.py @@ -59,5 +59,7 @@ def show_versions(as_str: bool = False) -> Union[str, None]: deps_info[modname] = None str = f"{str}\nPython dependencies:" for k, stat in deps_info.items(): - str = f"{str}\n{k:>13}: {stat}" # noqa: T001, T201 - return str + str = f"{str}\n{k:>13}: {stat}" + if as_str: + return str + print(str) # noqa: T201