Basic docstrings
This commit is contained in:
parent
2d62c76c06
commit
d6932805d6
1 changed files with 6 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue