mirror of https://github.com/astral-sh/ruff
[ty] Add more keyword completions to scope completions
This should round out the rest of the set. I think I had hesitated doing this before because some of these don't make sense in every context. But I think identifying the correct context for every keyword could be quite difficult. And at the very least, I think offering these at least as a choice---even if they aren't always correct---is better than not doing it at all.
This commit is contained in:
parent
cd7354a5c6
commit
1bbe4f0d5e
|
|
@ -17,7 +17,7 @@ numpy-array,main.py,0,
|
|||
numpy-array,main.py,1,1
|
||||
object-attr-instance-methods,main.py,0,1
|
||||
object-attr-instance-methods,main.py,1,1
|
||||
pass-keyword-completion,main.py,0,
|
||||
pass-keyword-completion,main.py,0,7
|
||||
raise-uses-base-exception,main.py,0,2
|
||||
scope-existing-over-new-import,main.py,0,1
|
||||
scope-prioritize-closer,main.py,0,2
|
||||
|
|
@ -25,4 +25,4 @@ scope-simple-long-identifier,main.py,0,1
|
|||
tstring-completions,main.py,0,1
|
||||
ty-extensions-lower-stdlib,main.py,0,8
|
||||
type-var-typing-over-ast,main.py,0,3
|
||||
type-var-typing-over-ast,main.py,1,277
|
||||
type-var-typing-over-ast,main.py,1,279
|
||||
|
|
|
|||
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue