From ae28b59d0ec024f57c7355807dca48ef95c8fede Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 1 May 2023 04:20:26 -0700 Subject: [PATCH] =?UTF-8?q?=E2=AC=86=20[pre-commit.ci]=20pre-commit=20auto?= =?UTF-8?q?update=20(#549)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * ⬆ [pre-commit.ci] pre-commit autoupdate updates: - [github.com/PyCQA/autoflake: v2.0.0 → v2.1.1](https://github.com/PyCQA/autoflake/compare/v2.0.0...v2.1.1) - [github.com/psf/black: 22.12.0 → 23.3.0](https://github.com/psf/black/compare/22.12.0...23.3.0) * 🎨 [pre-commit.ci] Auto format from pre-commit.com hooks --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> --- .pre-commit-config.yaml | 4 ++-- typer/rich_utils.py | 2 -- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 6b0dd64..c2b2920 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -23,7 +23,7 @@ repos: # This file is more readable without yield from exclude: ^docs_src/progressbar/tutorial004\.py - repo: https://github.com/PyCQA/autoflake - rev: v2.0.0 + rev: v2.1.1 hooks: - id: autoflake args: @@ -47,7 +47,7 @@ repos: name: isort (pyi) types: [pyi] - repo: https://github.com/psf/black - rev: 22.12.0 + rev: 23.3.0 hooks: - id: black ci: diff --git a/typer/rich_utils.py b/typer/rich_utils.py index 3f602ee..fdb61b6 100644 --- a/typer/rich_utils.py +++ b/typer/rich_utils.py @@ -552,7 +552,6 @@ def rich_format_help( # Print command / group help if we have some if obj.help: - # Print with some padding console.print( Padding( @@ -569,7 +568,6 @@ def rich_format_help( panel_to_arguments: DefaultDict[str, List[click.Argument]] = defaultdict(list) panel_to_options: DefaultDict[str, List[click.Option]] = defaultdict(list) for param in obj.get_params(ctx): - # Skip if option is hidden if getattr(param, "hidden", False): continue