From 43cfb2742f34c1156eea907dcee0a3eb12aa7e76 Mon Sep 17 00:00:00 2001 From: Sean Breckenridge Date: Wed, 28 Apr 2021 13:19:49 -0700 Subject: [PATCH] cli/query: bugfix, convert output to list (#170) * cli/query: bugfix, convert output to list to keep it backwards compatible --- my/core/__main__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/my/core/__main__.py b/my/core/__main__.py index 45a372b..d101fe5 100644 --- a/my/core/__main__.py +++ b/my/core/__main__.py @@ -460,8 +460,9 @@ def query_hpi_functions( elif output == 'pprint': from pprint import pprint - pprint(res) + pprint(list(res)) else: + res = list(res) # type: ignore[assignment] # output == 'repl' eprint(f"\nInteract with the results by using the {click.style('res', fg='green')} variable\n") try: