Skip to main content
Version: 2.2.1

nonebot.dependencies.utils

def get_typed_signature(call)

  • 说明: 获取可调用对象签名

  • 参数

    • call ((...) -> Any)
  • 返回

    • inspect.Signature

def get_typed_annotation(param, globalns)

  • 说明: 获取参数的类型注解

  • 参数

    • param (inspect.Parameter)

    • globalns (dict[str, Any])

  • 返回

    • Any

def check_field_type(field, value)

  • 说明: 检查字段类型是否匹配

  • 参数

  • 返回

    • Any