🚨 Add specific ignore items in pyright ignore

🚨 Make pyright happy
♻️ Remove unused adapter
This commit is contained in:
HibiKier
2025-01-10 12:19:11 +08:00
committed by BalconyJH
parent e814469b75
commit ccee16bed2
33 changed files with 53 additions and 51 deletions
@@ -1,3 +1,5 @@
from typing import ClassVar
from nonebot.adapters import Bot, Event
from nonebot.adapters.onebot.v11 import PokeNotifyEvent
from nonebot.exception import IgnoredException
@@ -38,11 +40,11 @@ class Limit(BaseModel):
class LimitManage:
add_module = [] # noqa: RUF012
add_module: ClassVar[list] = []
cd_limit: dict[str, Limit] = {} # noqa: RUF012
block_limit: dict[str, Limit] = {} # noqa: RUF012
count_limit: dict[str, Limit] = {} # noqa: RUF012
cd_limit: ClassVar[dict[str, Limit]] = {}
block_limit: ClassVar[dict[str, Limit]] = {}
count_limit: ClassVar[dict[str, Limit]] = {}
@classmethod
def add_limit(cls, limit: PluginLimit):