mirror of
https://github.com/davidhalter/jedi.git
synced 2025-12-10 07:41:51 +08:00
Fix a doctest
This commit is contained in:
@@ -23,7 +23,7 @@ example for the autocompletion feature:
|
||||
... datetime.da'''
|
||||
>>> script = jedi.Script(source, 3, len('datetime.da'), 'example.py')
|
||||
>>> script
|
||||
<Script: 'example.py'>
|
||||
<Script: 'example.py' ...>
|
||||
>>> completions = script.completions()
|
||||
>>> completions #doctest: +ELLIPSIS
|
||||
[<Completion: date>, <Completion: datetime>, ...]
|
||||
|
||||
@@ -76,3 +76,18 @@ class InstanceAttributeIfs:
|
||||
InstanceAttributeIfs().a1
|
||||
#? int() str()
|
||||
InstanceAttributeIfs().a2
|
||||
|
||||
|
||||
|
||||
class A:
|
||||
def a(self, b):
|
||||
for i in [self.a(i) for i in b]:
|
||||
#?
|
||||
i
|
||||
|
||||
class B:
|
||||
def a(self, b):
|
||||
for i in b:
|
||||
for i in self.a(i):
|
||||
#?
|
||||
yield i
|
||||
|
||||
Reference in New Issue
Block a user