Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
copilot review - orders params dict typing
  • Loading branch information
adamweiner committed Aug 13, 2025
commit be1bfa1e9f7284d24f4f10327feb0e5826dfd026
6 changes: 3 additions & 3 deletions planet/clients/orders.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
import asyncio
import logging
import time
from typing import AsyncIterator, Callable, Dict, List, Optional, Sequence, TypeVar, Union
from typing import Any, AsyncIterator, Callable, Dict, List, Optional, TypeVar, Union
import uuid
import json
import hashlib
Expand Down Expand Up @@ -531,7 +531,7 @@ async def list_orders(
planet.exceptions.ClientError: If state is not valid.
"""
url = self._orders_url()
params: Dict[str, Union[str, Sequence[str], bool]] = {}
params: Dict[str, Any] = {}
if source_type is not None:
params["source_type"] = source_type
else:
Expand All @@ -551,7 +551,7 @@ async def list_orders(
if destination_ref is not None:
params["destination_ref"] = destination_ref
if user_id is not None:
params["user_id"] = str(user_id)
params["user_id"] = user_id
if state:
if state not in ORDER_STATE_SEQUENCE:
raise exceptions.ClientError(
Expand Down