🔥 remove deprecated State param (#1160)

This commit is contained in:
Ju4tCode 2022-08-20 10:17:52 +08:00 committed by GitHub
parent 0f70e975b0
commit 4deae8f00c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 0 additions and 8 deletions

View File

@ -252,12 +252,6 @@ class StateInner(T_State):
... ...
def State() -> T_State:
"""**Deprecated**: 事件处理状态参数,请直接使用 {ref}`nonebot.typing.T_State`"""
warnings.warn("State() is deprecated, use `T_State` instead", DeprecationWarning)
return StateInner()
class StateParam(Param): class StateParam(Param):
"""事件处理状态参数""" """事件处理状态参数"""

View File

@ -11,7 +11,6 @@ from nonebot.typing import T_State
from nonebot.matcher import Matcher from nonebot.matcher import Matcher
from nonebot.adapters import Event, Message from nonebot.adapters import Event, Message
from nonebot.internal.params import Arg as Arg from nonebot.internal.params import Arg as Arg
from nonebot.internal.params import State as State
from nonebot.internal.params import ArgStr as ArgStr from nonebot.internal.params import ArgStr as ArgStr
from nonebot.internal.params import Depends as Depends from nonebot.internal.params import Depends as Depends
from nonebot.internal.params import ArgParam as ArgParam from nonebot.internal.params import ArgParam as ArgParam
@ -174,7 +173,6 @@ def LastReceived(default: Any = None) -> Any:
__autodoc__ = { __autodoc__ = {
"Arg": True, "Arg": True,
"State": True,
"ArgStr": True, "ArgStr": True,
"Depends": True, "Depends": True,
"ArgParam": True, "ArgParam": True,