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.",