Skip to content

Commit afad48f

Browse files
fix: add default value for optional range parameter
1 parent e082b4b commit afad48f

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

autumn/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
from .aio.client import AsyncClient as Autumn
99

1010
__title__ = "autumn"
11-
__version__ = "2.5.0"
11+
__version__ = "2.5.1"
1212
__license__ = "MIT"
1313
__author__ = "justanotherbyte"
1414
__copyright__ = "Copyright 2025 justanotherbyte"

autumn/aio/shed.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,5 +82,5 @@ def __call__(
8282
customer_id: str,
8383
feature_id: Union[str, List[str]],
8484
*,
85-
range: Literal["24h", "7d", "30d", "90d", "last_cycle"]
85+
range: Literal["24h", "7d", "30d", "90d", "last_cycle"] = "30d"
8686
) -> Awaitable[QueryResponse]: ...

autumn/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,7 @@ def query(
275275
customer_id: str,
276276
feature_id: Union[str, List[str]],
277277
*,
278-
range: Literal["24h", "7d", "30d", "90d", "last_cycle"]
278+
range: Literal["24h", "7d", "30d", "90d", "last_cycle"] = "30d"
279279
) -> QueryResponse:
280280
payload = _build_payload(locals(), self.query)
281281
return self.http.request("POST", "/query", QueryResponse, json=payload)

0 commit comments

Comments
 (0)