Skip to content

Remove excess bracket#436

Merged
shuchenliu merged 1 commit into1.1.xfrom
fix-serializer
Feb 26, 2026
Merged

Remove excess bracket#436
shuchenliu merged 1 commit into1.1.xfrom
fix-serializer

Conversation

@shuchenliu
Copy link
Copy Markdown
Member

This PR fixes a TypeError caused by a pair of excess brackets used when callingserializer.to_json in the api base handlers.

@shuchenliu shuchenliu requested a review from Copilot February 26, 2026 00:59
@shuchenliu shuchenliu changed the base branch from master to 1.1.x February 26, 2026 00:59
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Fixes a runtime TypeError in the hub API base handler response serialization by correcting the argument passed to serializer.to_json, ensuring the response body is built from a valid dict.

Changes:

  • Remove an extra pair of braces so serializer.to_json receives a proper dictionary for the {"result": ..., "status": "ok"} response payload.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@shuchenliu shuchenliu self-assigned this Feb 26, 2026
@shuchenliu shuchenliu merged commit 56a1387 into 1.1.x Feb 26, 2026
19 of 20 checks passed
@shuchenliu shuchenliu deleted the fix-serializer branch February 26, 2026 01:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants