From ebe22e9c826955283f1982740dd4f7031e3e1e75 Mon Sep 17 00:00:00 2001 From: Yusur Princeps Date: Thu, 27 Nov 2025 19:50:33 +0100 Subject: [PATCH] 0.7.11 fix types on cb32decode() --- CHANGELOG.md | 4 ++++ src/suou/__init__.py | 2 +- src/suou/codecs.py | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index aa40a97..75183e2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # Changelog +## 0.10.2 and 0.7.11 + ++ fix incorrect types on `cb32decode()` + ## 0.10.1 and 0.7.10 + `peewee`: fix missing imports diff --git a/src/suou/__init__.py b/src/suou/__init__.py index 1b64def..582be00 100644 --- a/src/suou/__init__.py +++ b/src/suou/__init__.py @@ -38,7 +38,7 @@ from .http import WantsContentType from .color import chalk, WebColor -__version__ = "0.7.10" +__version__ = "0.7.11" __all__ = ( diff --git a/src/suou/codecs.py b/src/suou/codecs.py index c617160..043af57 100644 --- a/src/suou/codecs.py +++ b/src/suou/codecs.py @@ -179,7 +179,7 @@ def cb32encode(val: bytes) -> str: ''' return want_str(base64.b32encode(val)).translate(B32_TO_CROCKFORD) -def cb32decode(val: bytes | str) -> str: +def cb32decode(val: bytes | str) -> bytes: ''' Decode bytes from Crockford Base32. '''