0.7.11 fix types on cb32decode()

This commit is contained in:
Yusur 2025-11-27 19:50:33 +01:00
parent 764efd9530
commit ebe22e9c82
3 changed files with 6 additions and 2 deletions

View file

@ -1,5 +1,9 @@
# Changelog # Changelog
## 0.10.2 and 0.7.11
+ fix incorrect types on `cb32decode()`
## 0.10.1 and 0.7.10 ## 0.10.1 and 0.7.10
+ `peewee`: fix missing imports + `peewee`: fix missing imports

View file

@ -38,7 +38,7 @@ from .http import WantsContentType
from .color import chalk, WebColor from .color import chalk, WebColor
__version__ = "0.7.10" __version__ = "0.7.11"
__all__ = ( __all__ = (

View file

@ -179,7 +179,7 @@ def cb32encode(val: bytes) -> str:
''' '''
return want_str(base64.b32encode(val)).translate(B32_TO_CROCKFORD) 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. Decode bytes from Crockford Base32.
''' '''