mirror of
https://github.com/davidhalter/jedi.git
synced 2026-02-20 16:08:25 +08:00
A few renames for readability in the api/completion.py file
This commit is contained in:
@@ -18,10 +18,10 @@ Here's a simple example of the autocompletion feature:
|
||||
>>> source = '''
|
||||
... import json
|
||||
... json.lo'''
|
||||
>>> script = jedi.Script(source, 3, len('json.lo'), 'example.py')
|
||||
>>> script = jedi.Script(source, path='example.py')
|
||||
>>> script
|
||||
<Script: 'example.py' ...>
|
||||
>>> completions = script.completions()
|
||||
>>> completions = script.complete(3, len('json.lo'))
|
||||
>>> completions
|
||||
[<Completion: load>, <Completion: loads>]
|
||||
>>> print(completions[0].complete)
|
||||
|
||||
Reference in New Issue
Block a user