From 858f993ceffb497bee12457d1d4102339af410a4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebasti=C3=A1n=20Ram=C3=ADrez?= Date: Sat, 28 Dec 2019 15:09:06 +0100 Subject: [PATCH 1/2] :fire: Clean exports from typer, remove unneeded Click components and add Exit exception --- typer/__init__.py | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/typer/__init__.py b/typer/__init__.py index d3ba347..92127f1 100644 --- a/typer/__init__.py +++ b/typer/__init__.py @@ -4,14 +4,7 @@ __version__ = "0.0.4" from click.exceptions import ( # noqa Abort, - BadArgumentUsage, - BadOptionUsage, - BadParameter, - ClickException, - FileError, - MissingParameter, - NoSuchOption, - UsageError, + Exit, ) from click.termui import ( # noqa clear, @@ -33,7 +26,6 @@ from click.utils import ( # noqa format_filename, get_app_dir, get_binary_stream, - get_os_args, get_text_stream, open_file, ) From 65f4d2fc1a580b2d3dbd1c2a6543601efc0cd4f8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebasti=C3=A1n=20Ram=C3=ADrez?= Date: Sat, 28 Dec 2019 15:17:47 +0100 Subject: [PATCH 2/2] :art: Format imports --- typer/__init__.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/typer/__init__.py b/typer/__init__.py index 92127f1..22f5bfc 100644 --- a/typer/__init__.py +++ b/typer/__init__.py @@ -2,10 +2,7 @@ __version__ = "0.0.4" -from click.exceptions import ( # noqa - Abort, - Exit, -) +from click.exceptions import Abort, Exit # noqa from click.termui import ( # noqa clear, confirm,