mirror of
https://github.com/davidhalter/jedi.git
synced 2025-12-08 06:44:46 +08:00
added mro
This commit is contained in:
@@ -279,7 +279,8 @@ class Parser(CachedModule):
|
||||
code += get_doc(scope)
|
||||
|
||||
names = set(dir(scope)) - set(['__file__', '__name__', '__doc__',
|
||||
'__path__', '__package__'])
|
||||
'__path__', '__package__']) \
|
||||
| set(['mro'])
|
||||
|
||||
classes, funcs, stmts, members = get_scope_objects(names)
|
||||
|
||||
|
||||
@@ -198,3 +198,9 @@ class int():
|
||||
class str():
|
||||
def __init__(self, obj):
|
||||
pass
|
||||
|
||||
class object():
|
||||
def mro():
|
||||
""" mro() -> list
|
||||
return a type's method resolution order """
|
||||
return [object]
|
||||
|
||||
Reference in New Issue
Block a user