mirror of
https://github.com/davidhalter/jedi.git
synced 2026-02-28 23:22:18 +08:00
Script.complete has been deprecated, therefore changed all usages / documatation to Script.completions
This commit is contained in:
@@ -22,7 +22,7 @@ example for the autocompletion feature:
|
||||
>>> script = jedi.Script(source, 3, len('datetime.da'), 'example.py')
|
||||
>>> script
|
||||
<Script: 'example.py'>
|
||||
>>> completions = script.complete()
|
||||
>>> completions = script.completions()
|
||||
>>> completions #doctest: +ELLIPSIS
|
||||
[<Completion: date>, <Completion: datetime>, ...]
|
||||
>>> print(completions[0].complete)
|
||||
|
||||
Reference in New Issue
Block a user