From 5bc4c57ada052a1b020670f32eb70db96a43cb5b Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Fri, 7 Jul 2023 10:26:53 -0600 Subject: [PATCH] chore(deps): Bump click from 8.1.3 to 8.1.4 (#1816) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * chore(deps): Bump click from 8.1.3 to 8.1.4 Bumps [click](https://github.com/pallets/click) from 8.1.3 to 8.1.4. - [Release notes](https://github.com/pallets/click/releases) - [Changelog](https://github.com/pallets/click/blob/main/CHANGES.rst) - [Commits](https://github.com/pallets/click/compare/8.1.3...8.1.4) --- updated-dependencies: - dependency-name: click dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] * Address mypy errors --------- Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Edgar Ramírez Mondragón --- poetry.lock | 6 +++--- singer_sdk/cli/common_options.py | 16 +++++++++++----- 2 files changed, 14 insertions(+), 8 deletions(-) diff --git a/poetry.lock b/poetry.lock index 1ae7cd9c5..f018406f7 100644 --- a/poetry.lock +++ b/poetry.lock @@ -404,13 +404,13 @@ files = [ [[package]] name = "click" -version = "8.1.3" +version = "8.1.4" description = "Composable command line interface toolkit" optional = false python-versions = ">=3.7" files = [ - {file = "click-8.1.3-py3-none-any.whl", hash = "sha256:bb4d8133cb15a609f44e8213d9b391b0809795062913b383c62be0ee95b1db48"}, - {file = "click-8.1.3.tar.gz", hash = "sha256:7682dc8afb30297001674575ea00d1814d808d6a36af415a82bd481d37ba7b8e"}, + {file = "click-8.1.4-py3-none-any.whl", hash = "sha256:2739815aaa5d2c986a88f1e9230c55e17f0caad3d958a5e13ad0797c166db9e3"}, + {file = "click-8.1.4.tar.gz", hash = "sha256:b97d0c74955da062a7d4ef92fadb583806a585b2ea81958a81bd72726cbb8e37"}, ] [package.dependencies] diff --git a/singer_sdk/cli/common_options.py b/singer_sdk/cli/common_options.py index 54f507894..25e6a57a9 100644 --- a/singer_sdk/cli/common_options.py +++ b/singer_sdk/cli/common_options.py @@ -2,21 +2,27 @@ from __future__ import annotations +import typing as t + import click -PLUGIN_VERSION = click.option( +if t.TYPE_CHECKING: + from click.decorators import _Decorator + + +PLUGIN_VERSION: _Decorator = click.option( "--version", is_flag=True, help="Display the package version.", ) -PLUGIN_ABOUT = click.option( +PLUGIN_ABOUT: _Decorator = click.option( "--about", is_flag=True, help="Display package metadata and settings.", ) -PLUGIN_ABOUT_FORMAT = click.option( +PLUGIN_ABOUT_FORMAT: _Decorator = click.option( "--format", "about_format", help="Specify output style for --about", @@ -24,7 +30,7 @@ default=None, ) -PLUGIN_CONFIG = click.option( +PLUGIN_CONFIG: _Decorator = click.option( "--config", multiple=True, help="Configuration file location or 'ENV' to use environment variables.", @@ -32,7 +38,7 @@ default=(), ) -PLUGIN_FILE_INPUT = click.option( +PLUGIN_FILE_INPUT: _Decorator = click.option( "--input", "file_input", help="A path to read messages from instead of from standard in.",