0.10.2 fix types on cb32decode()

This commit is contained in:
Yusur 2025-11-27 19:50:33 +01:00
parent 7e6a46c654
commit 855299c6d5
3 changed files with 6 additions and 2 deletions

View file

@ -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

View file

@ -37,7 +37,7 @@ from .redact import redact_url_password
from .http import WantsContentType
from .color import chalk, WebColor
__version__ = "0.10.1"
__version__ = "0.10.2"
__all__ = (
'ConfigOptions', 'ConfigParserConfigSource', 'ConfigSource', 'ConfigValue',

View file

@ -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.
'''