From b0c51657f147596e05aae3b129085afa31e16b21 Mon Sep 17 00:00:00 2001 From: Ian Schneider Date: Wed, 10 Jun 2026 13:36:37 -0600 Subject: [PATCH] fixes type hinting issues w/ click==8.4 --- planet/cli/types.py | 7 ++++--- pyproject.toml | 2 +- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/planet/cli/types.py b/planet/cli/types.py index c3168ea5..1b123938 100644 --- a/planet/cli/types.py +++ b/planet/cli/types.py @@ -21,14 +21,15 @@ from planet import exceptions, io -class CommaSeparatedString(click.types.StringParamType): +class CommaSeparatedString(click.ParamType): """A list of strings that is extracted from a comma-separated string.""" + name = 'VALUE' def convert(self, value, param, ctx) -> List[str]: if isinstance(value, list): convlist = value else: - convstr = super().convert(value, param, ctx) + convstr = click.STRING.convert(value, param, ctx) if convstr == '': self.fail('Entry cannot be an empty string.') @@ -42,7 +43,7 @@ def convert(self, value, param, ctx) -> List[str]: return convlist -class CommaSeparatedFloat(click.types.StringParamType): +class CommaSeparatedFloat(click.ParamType): """A list of floats that is extracted from a comma-separated string.""" name = 'VALUE' diff --git a/pyproject.toml b/pyproject.toml index e62f135e..04837eca 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -7,7 +7,7 @@ name = "planet" authors = [{ name = "Planet", email = "python-sdk-contributors@planet.com" }] description = "Planet SDK for Python" dependencies = [ - "click (>=8.0,!=8.2.1,<8.4.0)", + "click (>=8.0,!=8.2.1)", "geojson", "httpx>=0.28.0", "jsonschema",