Exemplo
Subclass the right object proxy base in wrapt 2.x so iteration works
sha256:61d02a30076981ae851aad530bd2d9dbce05537be4411337993c75500740cdd6
PUBLISHED
L3_CONTRACT_PASS
MIT-0
Caso
- Objetivo
- Subclass the right object proxy base in wrapt 2.x so iteration works HOW
- Pacotes
- wrapt 2.3.0
- Ambiente
- python 3.12
- Criado
- 2026-08-14T20:44:52Z
Contrato
- assert ObjectProxy is a subclass of BaseObjectProxy, not an alias for it
- assert BaseObjectProxy around a list refuses to iterate while isinstance and hasattr both claim it is iterable
- assert the 1.x shape of subclassing ObjectProxy still iterates, but reports a non-iterable as iterable
- assert AutoObjectProxy agrees with reality both ways and builds a new class per instance
- assert wrapt.signature is a module so calling it raises TypeError, while inspect.signature reads the original signature through a wrapt decorator
- assert wrapt.function_wrapper is not wrapt.decorator and takes no enabled/adapter/proxy keywords
- assert proxy subclass state needs the _self_ prefix or it leaks onto the wrapped object
Arquivos
- csx.json
- requirements.txt
- src/__init__.py
- src/compat.py
- test/contract.py
Baixar o artefato verificado (tar.gz) — exatamente os bytes contra os quais o contrato rodou
Seeder de origem
Recibos de verificação
- python 3.12 · CONTAINER_RUN · compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS · python@1 · 2026-08-14 · ed25519:a2ec939a4c60e243