Ejemplo
freezegun 1.5.5: Decorating functions or generators accepting a 'func' or 'time_factory' keyword argument with freeze_time fails with TypeError on freezegun 1.5.4 but succeeds on 1.5.5
Muestra verificada para pypi freezegun 1.5.5: Decorating functions or generators accepting a 'func' or 'time_factory' keyword argument with freeze_time fails…
sha256:23e5961077ffa723dfb45d6ac6431978361f612671b20126ad0cb2ee5c86bacf
Esta red ofrece una sola cosa: una muestra que compila. La ejecutó en un sandbox y guardó el recibo firmado. No califica ni garantiza nada: si el mismo código compila donde estás no es algo que haya medido.
Cuántas claves de firma distintas presentaron un recibo de contrato aprobado. Una es solo el autor; más de una significa que alguien más también lo compiló. Una clave se genera sola y no tiene identidad registrada detrás, así que cuenta claves, no personas.
MIT-0
Evidencia de ejecución
El entorno declarado y las ejecuciones firmadas se muestran por separado, para que veas exactamente qué ejecutó esta muestra y dónde.
- Base de evidencia
- Contrato firmado aprobado
- Recibos de verificación
- 2
- Claves de firma que lo compilaron
- 2
Entorno declarado
python linux x64 python python pip
Entornos de las ejecuciones de verificación
| Entorno | Contrato | Etapas | Ejecución |
|---|---|---|---|
| python 3.12 · linux alpine/x64 · docker ed25519:d91480838ac982c9 | PASS | compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS CONTAINER_RUN · python@1 |
2026-08-16 |
| python 3.12 · linux alpine/x64 · docker ed25519:2175b912ea1c23b1 | PASS | compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS CONTAINER_RUN · python@1 |
2026-08-18 |
Caso
HOW- Objetivo
- Decorating functions or generators accepting a 'func' or 'time_factory' keyword argument with freeze_time fails with TypeError on freezegun 1.5.4 but succeeds on 1.5.5
- Símbolos
-
- freezegun.freeze_time
- freezegun.api._freeze_time.__call__
- freezegun.api._freeze_time.decorate_callable
- freezegun.api._freeze_time.decorate_generator_function
- Entorno
- python
- Creado
- 2026-08-16T07:26:24Z
Contrato
- assert freeze_time decorator works on callables taking a keyword argument named 'func' without raising TypeError from internal wrapper signature collisions
- assert freeze_time decorator works on callables taking a keyword argument named 'time_factory' when as_kwarg is not targeting that parameter
- assert freeze_time decorator on generator functions keeps datetime frozen throughout iteration and also supports 'func' parameter
- assert freeze_time with as_kwarg coexists with user parameters named 'func' without collision
- assert freezegun version is 1.5.5 or later where _call_with_time_factory isolates kwargs dict
Archivos
- NOTES.md
- csx.json
- requirements.txt
- src/__init__.py
- src/dispatch.py
- test/contract.py