Files
ruff/crates/ty_completion_eval/completion-evaluation-tasks.csv
Andrew Gallant 68343e7edf [ty] Don't suggest things that aren't subclasses of BaseException after raise
This only applies to items that have a type associated with them. That
is, things that are already in scope. For items that don't have a type
associated with them (i.e., suggestions from auto-import), we still
suggest them since we can't know if they're appropriate or not. It's not
quite clear on how best to improve here for the auto-import case. (Short
of, say, asking for the type of each such symbol. But the performance
implications of that aren't known yet.)

Note that because of auto-import, we were still suggesting
`NotImplemented` even though astral-sh/ty#1262 specifically cites it as
the motivating example that we *shouldn't* suggest. This was occuring
because auto-import was including symbols from the `builtins` module,
even though those are actually already in scope. So this PR also gets
rid of those suggestions from auto-import.

Overall, this means that, at least, `raise NotImpl` won't suggest
`NotImplemented`.

Fixes astral-sh/ty#1262
2025-11-24 12:55:30 -05:00

1.1 KiB

1namefileindexrank
2auto-import-skips-current-modulemain.py01
3fstring-completionsmain.py01
4higher-level-symbols-preferredmain.py0
5higher-level-symbols-preferredmain.py11
6import-deprioritizes-dundermain.py01
7import-deprioritizes-sundermain.py01
8import-deprioritizes-type_check_onlymain.py01
9import-deprioritizes-type_check_onlymain.py11
10import-deprioritizes-type_check_onlymain.py21
11import-deprioritizes-type_check_onlymain.py32
12import-deprioritizes-type_check_onlymain.py43
13import-keyword-completionmain.py01
14internal-typeshed-hiddenmain.py04
15none-completionmain.py02
16numpy-arraymain.py0
17numpy-arraymain.py11
18object-attr-instance-methodsmain.py01
19object-attr-instance-methodsmain.py11
20pass-keyword-completionmain.py01
21raise-uses-base-exceptionmain.py01
22scope-existing-over-new-importmain.py01
23scope-prioritize-closermain.py02
24scope-simple-long-identifiermain.py01
25tstring-completionsmain.py01
26ty-extensions-lower-stdlibmain.py08
27type-var-typing-over-astmain.py03
28type-var-typing-over-astmain.py1278