From 314f504bf8f9a22662c6dcb38d95fdd4cc52921e Mon Sep 17 00:00:00 2001 From: Kinuax Date: Wed, 15 May 2024 11:58:17 +0200 Subject: [PATCH] Fix linting --- typer/_typing.py | 10 ++++++++-- typer/rich_utils.py | 1 - 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/typer/_typing.py b/typer/_typing.py index c9bcf18565..595a46d063 100644 --- a/typer/_typing.py +++ b/typer/_typing.py @@ -10,7 +10,6 @@ TYPE_CHECKING, AbstractSet, Any, - Callable as TypingCallable, ClassVar, Dict, ForwardRef, @@ -26,9 +25,16 @@ Union, _eval_type, cast, + get_type_hints, +) +from typing import ( + Callable as TypingCallable, +) +from typing import ( get_args as _typing_get_args, +) +from typing import ( get_origin as _typing_get_origin, - get_type_hints, ) from typing_extensions import Annotated, Literal diff --git a/typer/rich_utils.py b/typer/rich_utils.py index a3facbc2ce..2c9656069f 100644 --- a/typer/rich_utils.py +++ b/typer/rich_utils.py @@ -20,7 +20,6 @@ from rich.text import Text from rich.theme import Theme - # Default styles STYLE_OPTION = "bold cyan" STYLE_SWITCH = "bold green"