Fix docstring
This commit is contained in:
parent
11c2426ba4
commit
44a00a1bfd
1 changed files with 1 additions and 1 deletions
|
@ -44,7 +44,7 @@ class bytes(bbytes):
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def safe_decode(cls) -> str:
|
def safe_decode(cls) -> str:
|
||||||
'Calls cls.decode(cls, errors = "ignore"), if that errors, returns a blank bytes object'
|
'Calls cls.decode(cls, errors = "ignore"), if that errors, returns a blank string'
|
||||||
try:
|
try:
|
||||||
return cls.decode(cls.value, errors = "ignore") # type: ignore
|
return cls.decode(cls.value, errors = "ignore") # type: ignore
|
||||||
except TypeError:
|
except TypeError:
|
||||||
|
|
Loading…
Reference in a new issue