pyright is stupid, lmao

This commit is contained in:
Firepup Sixfifty 2023-11-14 16:18:16 -06:00
parent 76697b4a50
commit 4878ba9165
Signed by: Firepup650
GPG key ID: 7C92E2ABBBFAB9BA

View file

@ -43,7 +43,7 @@ class bytes(bbytes):
return str(cls.value)[2:-1]
@classmethod
def safe_decode(cls):
def safe_decode(cls) -> str:
'Calls cls.decode(cls, errors = "ignore"), if that errors, returns a blank bytes object'
try:
return cls.decode(cls, errors = "ignore") # type: ignore