query: Improve help text in interactive shell.

This commit is contained in:
Brett Smith 2021-03-09 16:17:30 -05:00
parent 741e662894
commit c3e0cc869b

View file

@ -9,6 +9,7 @@ import argparse
import contextlib
import datetime
import enum
import functools
import itertools
import logging
import sys
@ -122,6 +123,7 @@ class StrMeta(bc_query_env.AnyMeta):
class AggregateSet(bc_query_compile.EvalAggregator):
"""Filter argument values that aren't unique."""
__intypes__ = [object]
def __init__(self, operands: List[str]) -> None:
@ -223,6 +225,7 @@ class BQLShell(bc_query_shell.BQLShell):
self.last_line_parsed = line
super().run_parser(line, default_close_date)
@functools.wraps(bc_query_shell.BQLShell.on_Select, ('__doc__',))
def on_Select(self, statement: QueryStatement) -> None:
output_format: str = self.vars['format']
try: