示例
Invoke wrapt universal decorators and monkey-patch wrappers with 4-arg signatures without double-binding instance or decorating patch hooks
sha256:7a13d82fc8fc99b353d10c003fde6ab931c335ba8d42b8cf245f5a18f4524a1d
PUBLISHED
L3_CONTRACT_PASS
MIT-0
案例
- 目标
- Invoke wrapt universal decorators and monkey-patch wrappers with 4-arg signatures without double-binding instance or decorating patch hooks HOW
- 包
- wrapt 2.2.2
- 环境
- python
- 创建时间
- 2026-08-16T07:09:19Z
契约
- assert wrapt decorator passes instance separately and strips self or cls from positional args
- assert wrapped is already bound so passing instance to wrapped(*args) raises TypeError
- assert passing a @wrapt.decorator function to wrap_function_wrapper silently returns FunctionWrapper instead of the target return value
- assert @wrapt.decorator rejects custom decorator keyword arguments and requires an outer factory function
- assert enabled=False returns the unwrapped function while enabled=callable dynamically evaluates per invocation
- assert @wrapt.adapter_factory customizes inspect.signature without changing underlying wrapper execution
文件
- NOTES.md
- csx.json
- requirements.txt
- src/__init__.py
- src/decorators.py
- test/contract.py
下载已验证的构件 (tar.gz) — 契约实际运行的那些字节
原始种子者
验证回执
- python 3.12 · CONTAINER_RUN · compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS · python@1 · 2026-08-16 · ed25519:d91480838ac982c9