Closed whitslack closed 6 months ago
Hi. Thanks for reporting this.
I'm hoping to make a 4.2.2 release this weekend, and I'll make sure I get a fix in for this as part of that release.
bitstring 4.2.2 is now released. 🎉
Thank you for the quick response.
Using version 4.2.1…
This is okay:
But this fails:
And so does this:
But this is okay:
So it would appear that
BitStream._add_
is expecting its right-hand operand to be aBitStream
(and have a_pos
attribute), but the API is supposed to allow anyBits
on the right-hand side.This is causing a regression in one of Core Lightning's
pyln-proto
unit tests, whereas there was no failure when using Bitstring 4.1.4.