mirror of
https://github.com/davidhalter/jedi.git
synced 2026-05-17 05:49:37 +08:00
fixed doctest issues
This commit is contained in:
@@ -128,7 +128,7 @@ class Evaluator(object):
|
|||||||
true (default).
|
true (default).
|
||||||
|
|
||||||
>>> pairs[2] #doctest: +ELLIPSIS
|
>>> pairs[2] #doctest: +ELLIPSIS
|
||||||
(<Module: ...builtin...>, [<Name: ...>, ...])
|
(<Builtin: ...builtin...>, [<PyName: ...>, ...])
|
||||||
|
|
||||||
:rtype: [(pr.Scope, [pr.Name])]
|
:rtype: [(pr.Scope, [pr.Name])]
|
||||||
:return: Return an generator that yields a pair of scope and names.
|
:return: Return an generator that yields a pair of scope and names.
|
||||||
|
|||||||
@@ -129,8 +129,11 @@ class PyName(object):
|
|||||||
def get_parent_until(self):
|
def get_parent_until(self):
|
||||||
return self.parent.get_parent_until()
|
return self.parent.get_parent_until()
|
||||||
|
|
||||||
|
def __str__(self):
|
||||||
|
return self.name
|
||||||
|
|
||||||
def __repr__(self):
|
def __repr__(self):
|
||||||
return '<%s: (%s).%s>' % (type(self).__name__, repr(self._obj.obj), self.name)
|
return '<%s: (%s).%s>' % (type(self).__name__, self._obj.name, self.name)
|
||||||
|
|
||||||
@property
|
@property
|
||||||
@underscore_memoization
|
@underscore_memoization
|
||||||
|
|||||||
Reference in New Issue
Block a user