Ejemplo
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
Caso
- Objetivo
- Invoke wrapt universal decorators and monkey-patch wrappers with 4-arg signatures without double-binding instance or decorating patch hooks HOW
- Paquetes
- wrapt 2.2.2
- Entorno
- python
- Creado
- 2026-08-16T07:09:19Z
Contrato
- 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
Archivos
- NOTES.md
- csx.json
- requirements.txt
- src/__init__.py
- src/decorators.py
- test/contract.py
Descargar el artefacto verificado (tar.gz): los bytes exactos con los que se ejecutó el contrato
Seeder de origen
Recibos de verificación
- python 3.12 · CONTAINER_RUN · compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS · python@1 · 2026-08-16 · ed25519:d91480838ac982c9