-
Notifications
You must be signed in to change notification settings - Fork 92
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix _buffer_encode() wrong return type. #144
Conversation
Hmm it seems rather unimpressive that There is a wider issue here. The codec decoder also doesn't work properly. The existing tests in |
I noted here that the codec implementation appears to be untested, broken, and likely unused. #134 |
I see. I think further discussion would be needed before attempting to fix this. |
@elliotwutingfeng I think your fix was fine, I have incorporated it into my PR #145 which also fixes the other issues. |
Thanks! Yes, it is better to consolidate all the fixes into one PR. |
Current implementation of _buffer_encode() has the wrong type signature (expected bytes but got str). It also attempts to perform a str.join() on list[bytes].
Fixes #138