Skip to content

Commit 6821b7a

Browse files
committed
[ty] Add None completion task to evaluation
Since `None` is a keyword, it isn't currently included in completions. But this is a common papercut that is really annoying, and actually makes typing `None` into the playground nearly impossible. So let's try to fix this.
1 parent 863764b commit 6821b7a

File tree

5 files changed

+17
-0
lines changed

5 files changed

+17
-0
lines changed

crates/ty_completion_eval/completion-evaluation-tasks.csv

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ higher-level-symbols-preferred,main.py,1,1
55
import-deprioritizes-dunder,main.py,0,1
66
import-deprioritizes-sunder,main.py,0,1
77
internal-typeshed-hidden,main.py,0,4
8+
none-completion,main.py,0,
89
numpy-array,main.py,0,
910
numpy-array,main.py,1,1
1011
object-attr-instance-methods,main.py,0,1
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
[settings]
2+
auto-import = false
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
x = Non<CURSOR: None>
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
[project]
2+
name = "test"
3+
version = "0.1.0"
4+
requires-python = ">=3.13"
5+
dependencies = []

crates/ty_completion_eval/truth/none-completion/uv.lock

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)