🔥 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
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):
"""事件处理状态参数"""