mirror of
https://github.com/nonebot/nonebot2.git
synced 2025-06-05 03:45:46 +00:00
Some checks failed
Code Coverage / Test Coverage (pydantic-v1, ubuntu-latest, 3.10) (push) Failing after 1m25s
Code Coverage / Test Coverage (pydantic-v1, ubuntu-latest, 3.11) (push) Failing after 1m24s
Code Coverage / Test Coverage (pydantic-v1, ubuntu-latest, 3.12) (push) Failing after 1m30s
Code Coverage / Test Coverage (pydantic-v1, ubuntu-latest, 3.9) (push) Failing after 1m23s
Code Coverage / Test Coverage (pydantic-v2, ubuntu-latest, 3.10) (push) Failing after 1m28s
Code Coverage / Test Coverage (pydantic-v2, ubuntu-latest, 3.11) (push) Failing after 1m33s
Code Coverage / Test Coverage (pydantic-v2, ubuntu-latest, 3.12) (push) Failing after 1m22s
Code Coverage / Test Coverage (pydantic-v2, ubuntu-latest, 3.9) (push) Failing after 1m37s
Pyright Lint / Pyright Lint (pydantic-v1) (push) Failing after 1m23s
Pyright Lint / Pyright Lint (pydantic-v2) (push) Failing after 1m19s
Ruff Lint / Ruff Lint (push) Successful in 27s
Site Deploy / publish (push) Failing after 1m31s
Code Coverage / Test Coverage (pydantic-v1, macos-latest, 3.10) (push) Has been cancelled
Code Coverage / Test Coverage (pydantic-v1, macos-latest, 3.11) (push) Has been cancelled
Code Coverage / Test Coverage (pydantic-v1, macos-latest, 3.12) (push) Has been cancelled
Code Coverage / Test Coverage (pydantic-v1, macos-latest, 3.9) (push) Has been cancelled
Code Coverage / Test Coverage (pydantic-v1, windows-latest, 3.10) (push) Has been cancelled
Code Coverage / Test Coverage (pydantic-v1, windows-latest, 3.11) (push) Has been cancelled
Code Coverage / Test Coverage (pydantic-v1, windows-latest, 3.12) (push) Has been cancelled
Code Coverage / Test Coverage (pydantic-v1, windows-latest, 3.9) (push) Has been cancelled
Code Coverage / Test Coverage (pydantic-v2, macos-latest, 3.10) (push) Has been cancelled
Code Coverage / Test Coverage (pydantic-v2, macos-latest, 3.11) (push) Has been cancelled
Code Coverage / Test Coverage (pydantic-v2, macos-latest, 3.12) (push) Has been cancelled
Code Coverage / Test Coverage (pydantic-v2, macos-latest, 3.9) (push) Has been cancelled
Code Coverage / Test Coverage (pydantic-v2, windows-latest, 3.10) (push) Has been cancelled
Code Coverage / Test Coverage (pydantic-v2, windows-latest, 3.11) (push) Has been cancelled
Code Coverage / Test Coverage (pydantic-v2, windows-latest, 3.12) (push) Has been cancelled
Code Coverage / Test Coverage (pydantic-v2, windows-latest, 3.9) (push) Has been cancelled
49 lines
743 B
Markdown
49 lines
743 B
Markdown
---
|
|
mdx:
|
|
format: md
|
|
sidebar_position: 1
|
|
description: nonebot.dependencies.utils 模块
|
|
---
|
|
|
|
# nonebot.dependencies.utils
|
|
|
|
## _def_ `get_typed_signature(call)` {#get-typed-signature}
|
|
|
|
- **说明:** 获取可调用对象签名
|
|
|
|
- **参数**
|
|
|
|
- `call` ((...) -> Any)
|
|
|
|
- **返回**
|
|
|
|
- inspect.Signature
|
|
|
|
## _def_ `get_typed_annotation(param, globalns)` {#get-typed-annotation}
|
|
|
|
- **说明:** 获取参数的类型注解
|
|
|
|
- **参数**
|
|
|
|
- `param` (inspect.Parameter)
|
|
|
|
- `globalns` (dict[str, Any])
|
|
|
|
- **返回**
|
|
|
|
- Any
|
|
|
|
## _def_ `check_field_type(field, value)` {#check-field-type}
|
|
|
|
- **说明:** 检查字段类型是否匹配
|
|
|
|
- **参数**
|
|
|
|
- `field` ([ModelField](../compat.md#ModelField))
|
|
|
|
- `value` (Any)
|
|
|
|
- **返回**
|
|
|
|
- Any
|