Skip to content

[BUG] The current JSON client accepts dict[str, Any] only, but should also accept list[dict[str, Any]] #836

@jtsextonMITRE

Description

@jtsextonMITRE

Because endpoints like /api/v1/jobs/{id}/metrics, /api/v1/entrypoints/{id}/queues, and /api/v1/entrypoints/{id}/tags exist, the client's typing should be updated to be able to handle list[dict[str, Any]] types, instead of just dict[str, Any].

This can potentially be done by adding an additional type variable T2, such that T1 = dict[str, Any] and T2 = list[dict[str, Any]] for the JSON client, and T1 == T2 for the Response client.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions