Skip to content

feat(api): migrate RelayUsageSerializer to Serializer[T]#116791

Closed
azulus wants to merge 1 commit into
masterfrom
jeremy/relay-usage-serializer-t
Closed

feat(api): migrate RelayUsageSerializer to Serializer[T]#116791
azulus wants to merge 1 commit into
masterfrom
jeremy/relay-usage-serializer-t

Conversation

@azulus
Copy link
Copy Markdown
Member

@azulus azulus commented Jun 3, 2026

Subscript RelayUsageSerializer with OrganizationRelayResponse, annotate its serialize() return, and tighten organization_relay_usage.py to Response[list[OrganizationRelayResponse]]. Pass the serializer explicitly at the call site so mypy picks the typed serialize(...) overload instead of the Any fallback.

Same pattern as #116743 (Tag(Key|Value)Serializer). No cast.

Subscript `RelayUsageSerializer` with `OrganizationRelayResponse`, annotate
its `serialize()` return, and tighten `organization_relay_usage.py` to
`Response[list[OrganizationRelayResponse]]`. Pass the serializer explicitly
at the call site so mypy picks the typed `serialize(...)` overload instead
of the `Any` fallback.

Same pattern as #116743 (Tag(Key|Value)Serializer). No cast.
@azulus azulus requested review from a team as code owners June 3, 2026 17:58
@github-actions github-actions Bot added the Scope: Backend Automatically applied to PRs that change backend components label Jun 3, 2026
@azulus azulus closed this Jun 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Scope: Backend Automatically applied to PRs that change backend components

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant