cli/query: bugfix, convert output to list (#170)

* cli/query: bugfix, convert output to list to keep it backwards compatible
This commit is contained in:
Sean Breckenridge 2021-04-28 13:19:49 -07:00 committed by GitHub
parent fa7474c087
commit 43cfb2742f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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: