mypy ignore ipython import

This commit is contained in:
Sean Breckenridge 2021-04-05 13:52:25 -07:00
parent 702d41fe90
commit 188276eefd

View file

@ -382,7 +382,7 @@ def query_hpi_functions(
else: else:
# output == 'repl' # output == 'repl'
try: try:
import IPython import IPython # type: ignore[import]
except ModuleNotFoundError: except ModuleNotFoundError:
eprint("'repl' requires ipython, install it with 'python3 -m pip install ipython'") eprint("'repl' requires ipython, install it with 'python3 -m pip install ipython'")
sys.exit(1) sys.exit(1)
@ -391,8 +391,6 @@ def query_hpi_functions(
IPython.embed() IPython.embed()
@click.group() @click.group()
def main() -> None: def main() -> None:
''' '''