Skip to content

Commit 7ec5451

Browse files
committed
fixes type hinting issues w/ click==8.4
1 parent 490e795 commit 7ec5451

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

planet/cli/types.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,14 @@
2121
from planet import exceptions, io
2222

2323

24-
class CommaSeparatedString(click.types.StringParamType):
24+
class CommaSeparatedString(click.types.ParamType[list[str]]):
2525
"""A list of strings that is extracted from a comma-separated string."""
2626

2727
def convert(self, value, param, ctx) -> List[str]:
2828
if isinstance(value, list):
2929
convlist = value
3030
else:
31-
convstr = super().convert(value, param, ctx)
31+
convstr = str(value)
3232

3333
if convstr == '':
3434
self.fail('Entry cannot be an empty string.')
@@ -42,7 +42,7 @@ def convert(self, value, param, ctx) -> List[str]:
4242
return convlist
4343

4444

45-
class CommaSeparatedFloat(click.types.StringParamType):
45+
class CommaSeparatedFloat(click.types.ParamType[list[float]]):
4646
"""A list of floats that is extracted from a comma-separated string."""
4747
name = 'VALUE'
4848

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ name = "planet"
77
authors = [{ name = "Planet", email = "python-sdk-contributors@planet.com" }]
88
description = "Planet SDK for Python"
99
dependencies = [
10-
"click (>=8.0,!=8.2.1,<8.4.0)",
10+
"click (>=8.0,!=8.2.1)",
1111
"geojson",
1212
"httpx>=0.28.0",
1313
"jsonschema",

0 commit comments

Comments
 (0)