generate_config_file: Writing empty sets
未关闭
- 主要语言
- Python
- 星标
- 653
- 派生
- 217
- 平均合并
- 2 天 21 小时
- 30 天内合并 PR
- 2
描述
IMHO; empty sets should be written as `set([])` (not `set()`), since when you later add some values, it is easy to forget adding the `[]`. Yes, you can also use set literals, but then the existing `set()` does not nudge you into that direction.
贡献指南
调研方向
Start at the generate_config_file entry point and inspect how empty sets are serialized. The change is complete when an empty set is emitted as set([]) rather than set(), with the existing test coverage run to confirm the generated configuration remains valid.
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- python
- 领域
- tooling
- Issue 类型
- 缺陷
- 难度
- 2/5
- 预计耗时
- 1-3 小时
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 55/100