Skip to content

fix: sync version and use context manager for file handle#77

Open
hell0gunawan wants to merge 1 commit intoMiniMax-AI:mainfrom
hell0gunawan:fix/version-and-file-handle-v2
Open

fix: sync version and use context manager for file handle#77
hell0gunawan wants to merge 1 commit intoMiniMax-AI:mainfrom
hell0gunawan:fix/version-and-file-handle-v2

Conversation

@hell0gunawan
Copy link
Copy Markdown

Summary

Two independent fixes in one PR:

1. Version sync (#62)

  • __init__.py: 0.0.17 → 0.0.18
  • Matches pyproject.toml version (already 0.0.18)

2. File handle leak fix (#63)

  • play_audio(): changed open() to use with context manager
  • Prevents file handle left open after reading

Both are small, isolated, low-risk fixes with no chance of breaking existing functionality.

Changes

- __version__ = "0.0.17"
+ __version__ = "0.0.18"

- play(open(file_path, "rb").read())
+ with open(file_path, "rb") as f:
+     play(f.read())

Addresses

- Sync __init__.py version: 0.0.17 -> 0.0.18 (matches pyproject.toml)
- Use context manager for play_audio local file reading to prevent
  file handle leak (fixes MiniMax-AI#63)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

1 participant