Basic docstrings

This commit is contained in:
Firepup Sixfifty 2023-11-14 16:09:38 -06:00
parent 2d62c76c06
commit d6932805d6
Signed by: Firepup650
GPG key ID: 7C92E2ABBBFAB9BA

View file

@ -39,4 +39,10 @@ class bytes(bbytes):
@classmethod
def lazy_decode(cls):
"Lazily decode the bytes object using string manipulation"
return str(cls.value)[2:-1]
@classmethod
def safe_decode(cls):
'Calls cls.decode(cls, errors = "ignore")'
return cls.decode(cls, errors = "ignore") # type: ignore