mirror of
https://github.com/davidhalter/jedi.git
synced 2026-10-12 03:40:12 +08:00
builtin functions didn't have a self attribute until now
This commit is contained in:
1 parent
fa02410fda
commit
11bfbbab6f
1 file changed
+2
@@ -281,6 +281,8 @@ class Parser(CachedModule):
|
|||||||
# functions
|
# functions
|
||||||
for name, func in funcs.items():
|
for name, func in funcs.items():
|
||||||
params, ret = parse_function_doc(func)
|
params, ret = parse_function_doc(func)
|
||||||
|
if depth > 0:
|
||||||
|
params = 'self, ' + params
|
||||||
doc_str = get_doc(func, indent=True)
|
doc_str = get_doc(func, indent=True)
|
||||||
try:
|
try:
|
||||||
mixin = mixin_funcs[name]
|
mixin = mixin_funcs[name]
|
||||||
|
|||||||
Reference in new issue
Block a user