Skip to content

Stream V2 examples: Adapt to new version of cbor2#10

Merged
soph-dec merged 1 commit into
mainfrom
fixes-for-new-cbor2-version
Jun 24, 2026
Merged

Stream V2 examples: Adapt to new version of cbor2#10
soph-dec merged 1 commit into
mainfrom
fixes-for-new-cbor2-version

Conversation

@soph-dec

Copy link
Copy Markdown
Contributor

With version 6.0.0, cbor2 introduced two breaking changes that affect the Python skript here:

  • The signature of tag_hook was changed from CBORDecoder, CBORTag to CBORTag, immutable.
  • The exception CBORDecodeValueError was removed, now a CBORDecodeError is used instead.

Fixes #9

With version 6.0.0, cbor2 introduced two breaking changes that affect
the Python skript here:

 - The signature of `tag_hook` was changed from `CBORDecoder, CBORTag`
   to `CBORTag, immutable`.
 - The exception `CBORDecodeValueError` was removed, now a
   `CBORDecodeError` is used instead.

Fixes #9
@soph-dec soph-dec force-pushed the fixes-for-new-cbor2-version branch from 189cec3 to 58e95d4 Compare June 23, 2026 12:39
@soph-dec soph-dec merged commit 732e690 into main Jun 24, 2026
36 checks passed
@soph-dec soph-dec deleted the fixes-for-new-cbor2-version branch July 7, 2026 12:35
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.

Example tag_hook breaks with cbor2 5.x to 6.x version update

1 participant