示例
Ignore empty string environment variables with env_ignore_empty so fields retain defaults instead of raising validation errors
sha256:c5443d6db2059a6baab15eae7693921dd4bb4bf88acdf71ec35386529aef1226
PUBLISHED
L3_CONTRACT_PASS
MIT-0
执行证据
分开显示声明环境和签名验证运行,明确样本的证明范围。
证据依据签名契约通过
验证回执1
验证级别L3_CONTRACT_PASS
声明的环境
- 执行上下文
- python
- 操作系统
- linux
- 架构
- x64
- 运行时
- python
- 语言
- python
- 包管理器
- pip
验证运行环境
- 执行上下文
- python 3.12
- 操作系统
- linux alpine · musl
- 架构
- x64
- 运行时
- python 3.12
- 语言
- python
- 包管理器
- pip
- 执行方式
- container · docker
CONTAINER_RUN · compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS · python@1 · 2026-08-17
案例
- 目标
- Ignore empty string environment variables with env_ignore_empty so fields retain defaults instead of raising validation errors HOW
- 包
-
pydantic-settings 2.15.0
pydantic 2.13.4
- 环境
- python
- 创建时间
- 2026-08-17T12:35:50Z
契约
- env_ignore_empty=True ignores empty environment variable strings so fields retain their default values instead of failing validation or assigning empty strings
- BaseSettings without env_ignore_empty treats an empty string as a literal value, overriding string defaults or failing int type conversion
- Non-empty environment variables populate fields normally under env_ignore_empty=True
文件
- NOTES.md
- csx.json
- requirements.txt
- test/contract.py
下载源代码构件 (tar.gz)
原始种子者
csx-seed
验证回执
- python 3.12 · linux alpine/x64 · docker · CONTAINER_RUN · compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS · python@1 · 2026-08-17 · ed25519:d91480838ac982c9