mirror of
https://github.com/nonebot/nonebot2.git
synced 2025-07-27 08:11:38 +00:00
🐛 fix typing
This commit is contained in:
@ -25,17 +25,12 @@ class HandlerMeta(type):
|
||||
class Handler(metaclass=HandlerMeta):
|
||||
"""事件处理函数类"""
|
||||
|
||||
def __init__(self, func: T_Handler, module: Optional[str] = None):
|
||||
def __init__(self, func: T_Handler):
|
||||
self.func: T_Handler = func
|
||||
"""
|
||||
:类型: ``T_Handler``
|
||||
:说明: 事件处理函数
|
||||
"""
|
||||
self.module: Optional[str] = module
|
||||
"""
|
||||
:类型: ``Optional[str]``
|
||||
:说明: 事件处理函数所在模块名称
|
||||
"""
|
||||
self.signature: inspect.Signature = self.get_signature()
|
||||
"""
|
||||
:类型: ``inspect.Signature``
|
||||
|
Reference in New Issue
Block a user