KotlinIsland / KotlinIsland/basedpython

show a warning when `Unknown` is inferred

未关闭
#15 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
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

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。