forked from Firepup650/FireBot
pyright is stupid, lmao
This commit is contained in:
parent
76697b4a50
commit
4878ba9165
1 changed files with 1 additions and 1 deletions
|
@ -43,7 +43,7 @@ class bytes(bbytes):
|
||||||
return str(cls.value)[2:-1]
|
return str(cls.value)[2:-1]
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def safe_decode(cls):
|
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 bytes object'
|
||||||
try:
|
try:
|
||||||
return cls.decode(cls, errors = "ignore") # type: ignore
|
return cls.decode(cls, errors = "ignore") # type: ignore
|
||||||
|
|
Loading…
Reference in a new issue