Skip to content

style(server): fix over-indentation in music_generation function body (#69)#84

Open
TumCucTom wants to merge 1 commit into
MiniMax-AI:mainfrom
TumCucTom:fix/mcp-69-music-indent
Open

style(server): fix over-indentation in music_generation function body (#69)#84
TumCucTom wants to merge 1 commit into
MiniMax-AI:mainfrom
TumCucTom:fix/mcp-69-music-indent

Conversation

@TumCucTom
Copy link
Copy Markdown

Summary

  • Dedent the body of music_generation() in minimax_mcp/server.py by 4 spaces so it matches its peer functions.

Why

Issue #69: the function body was indented one level too deep (8 spaces) compared to peer functions like text_to_image and voice_design (4 spaces). The closing ) of the final except block was also at the wrong column. Pure style fix, no behaviour change.

Test plan

  • python3 -c "import ast; ast.parse(...)" confirms the file still parses
  • pytest tests/ still green

Fixes #69.

🤖 Generated with Claude Code

The body of music_generation() was indented one level too deep (8
spaces) compared to its peers (text_to_image, voice_design, etc.),
which use 4 spaces inside the function. The closing ) of the last
except block was also at the wrong column, which a strict linter
would flag.

Dedent the function body by 4 spaces to match the rest of the file.
No behaviour change; pure cosmetic/style fix.

Fixes MiniMax-AI#69.

Co-authored-by: Zippy AI <tomkinsbale@icloud.com>
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
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.

fix(server): music_generation has inconsistent indentation — try block indented inside function body

1 participant