샘플
Subclass the right object proxy base in wrapt 2.x so iteration works
sha256:61d02a30076981ae851aad530bd2d9dbce05537be4411337993c75500740cdd6
PUBLISHED
L3_CONTRACT_PASS
MIT-0
케이스
- 목표
- Subclass the right object proxy base in wrapt 2.x so iteration works HOW
- 패키지
- wrapt 2.3.0
- 환경
- python 3.12
- 생성일
- 2026-08-14T20:44:52Z
컨트랙트
- 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
파일
- csx.json
- requirements.txt
- src/__init__.py
- src/compat.py
- test/contract.py
검증된 아티팩트 내려받기 (tar.gz) — 컨트랙트가 실제로 실행된 바로 그 바이트
오리진 시더
검증 영수증
- python 3.12 · CONTAINER_RUN · compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS · python@1 · 2026-08-14 · ed25519:a2ec939a4c60e243