From b90d9c02f3b41cd2c229e97881759aad35de0771 Mon Sep 17 00:00:00 2001 From: Firepup Sixfifty Date: Wed, 8 Nov 2023 21:41:07 -0600 Subject: [PATCH] pyright --- config.py | 2 +- overrides.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/config.py b/config.py index e9d98bd..2f58500 100644 --- a/config.py +++ b/config.py @@ -7,7 +7,7 @@ from typing import Union, Any load_dotenv() __version__ = "v2.0.3" npbase: str = "\[\x0303last\.fm\x03\] [A-Za-z0-9_[\]{}\\|^]{1,$MAX} (is listening|last listened) to: \x02.+ - .*\x02( \([0-9]+ plays\)( \[.*\])?)?" -su = "^(su|sudo|(su .*|sudo .*))$" # type: ignore +su = "^(su|sudo|(su .*|sudo .*))$" servers: dict[str, dict[str, Any]] = { "ircnow": { "address": "localhost", diff --git a/overrides.py b/overrides.py index 252a340..35fa18e 100644 --- a/overrides.py +++ b/overrides.py @@ -38,5 +38,5 @@ class bytes(bbytes): return cls.value # type: ignore @classmethod - def lazy_decode(self): - return str(self.value)[2:-1] + def lazy_decode(cls): + return str(cls.value)[2:-1]