(params: dict[str, Any])
| 66 | |
| 67 | |
| 68 | def encode_query(params: dict[str, Any]) -> str: |
| 69 | filtered = {} |
| 70 | for key, value in params.items(): |
| 71 | if value is None: |
| 72 | continue |
| 73 | if isinstance(value, list): |
| 74 | filtered[key] = ",".join(str(item) for item in value) |
| 75 | else: |
| 76 | filtered[key] = value |
| 77 | return parse.urlencode(filtered) |
| 78 | |
| 79 | |
| 80 | def get_token(cli_token: str | None) -> str: |
no outgoing calls
no test coverage detected