forked from Firepup650/FireBot
pyright
This commit is contained in:
parent
d9b42eef4a
commit
b90d9c02f3
2 changed files with 3 additions and 3 deletions
|
@ -7,7 +7,7 @@ from typing import Union, Any
|
||||||
load_dotenv()
|
load_dotenv()
|
||||||
__version__ = "v2.0.3"
|
__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\)( \[.*\])?)?"
|
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]] = {
|
servers: dict[str, dict[str, Any]] = {
|
||||||
"ircnow": {
|
"ircnow": {
|
||||||
"address": "localhost",
|
"address": "localhost",
|
||||||
|
|
|
@ -38,5 +38,5 @@ class bytes(bbytes):
|
||||||
return cls.value # type: ignore
|
return cls.value # type: ignore
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def lazy_decode(self):
|
def lazy_decode(cls):
|
||||||
return str(self.value)[2:-1]
|
return str(cls.value)[2:-1]
|
||||||
|
|
Loading…
Reference in a new issue