KotlinIsland / KotlinIsland/basedpython
show a warning when `Unknown` is inferred
未关闭
- 主要语言
- Rust
- 星标
- 16
- 派生
- 0
- 平均合并
- 17 小时 32 分钟
- 30 天内合并 PR
- 20
描述
```py
class A:
a = None # expect a warning or `None`, not `None | Unknown`
```
贡献指南
调研方向
Start with the type-inference path exercised by the `class A` example and trace how `None` becomes `None | Unknown`. Confirm the intended behavior in the existing checker tests, then ensure this case produces a warning or infers `None` without `Unknown` and add coverage for the example.
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- python, rust
- 领域
- compilers
- Issue 类型
- 缺陷
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 活跃度
- 冷清
- 描述清晰度
- 基本清楚
- 新手友好度
- 55/100