mirror of
https://github.com/davidhalter/jedi.git
synced 2026-01-31 03:45:22 +08:00
Merge branch 'dev' of git://github.com/davidhalter/jedi
This commit is contained in:
3
docs/_static/logo-src.txt
vendored
Normal file
3
docs/_static/logo-src.txt
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
The source of the logo is a photoshop file hosted here:
|
||||
|
||||
https://dl.dropboxusercontent.com/u/170011615/Jedi12_Logo.psd.xz
|
||||
BIN
docs/_static/logo.png
vendored
BIN
docs/_static/logo.png
vendored
Binary file not shown.
|
Before Width: | Height: | Size: 25 KiB After Width: | Height: | Size: 28 KiB |
@@ -54,7 +54,7 @@ Emacs:
|
||||
|
||||
- `Jedi.el <https://github.com/tkf/emacs-jedi>`_
|
||||
|
||||
Sublime Text 2:
|
||||
Sublime Text 2/3:
|
||||
|
||||
- `SublimeJEDI <https://github.com/svaiter/SublimeJEDI>`_
|
||||
|
||||
|
||||
@@ -84,6 +84,7 @@ class Instance(use_metaclass(cache.CachedMetaClass, Executable)):
|
||||
except IndexError:
|
||||
return None
|
||||
|
||||
@cache.memoize_default([])
|
||||
def get_self_properties(self):
|
||||
def add_self_dot_name(name):
|
||||
n = copy.copy(name)
|
||||
@@ -110,9 +111,6 @@ class Instance(use_metaclass(cache.CachedMetaClass, Executable)):
|
||||
add_self_dot_name(n)
|
||||
|
||||
for s in self.base.get_super_classes():
|
||||
if s == self.base:
|
||||
# I don't know how this could happen... But saw it once.
|
||||
continue
|
||||
names += Instance(s).get_self_properties()
|
||||
|
||||
return names
|
||||
|
||||
5
test/completion/import_tree/recurse_class1.py
Normal file
5
test/completion/import_tree/recurse_class1.py
Normal file
@@ -0,0 +1,5 @@
|
||||
import recurse_class2
|
||||
|
||||
class C(recurse_class2.C):
|
||||
def a(self):
|
||||
pass
|
||||
4
test/completion/import_tree/recurse_class2.py
Normal file
4
test/completion/import_tree/recurse_class2.py
Normal file
@@ -0,0 +1,4 @@
|
||||
import recurse_class1
|
||||
|
||||
class C(recurse_class1.C):
|
||||
pass
|
||||
@@ -196,7 +196,7 @@ import datetime.
|
||||
#? []
|
||||
import datetime.date
|
||||
|
||||
#? 18 ['mod1', 'random', 'pkg', 'rename1', 'rename2', 'import']
|
||||
#? 18 ['mod1', 'random', 'pkg', 'rename1', 'rename2', 'import', 'recurse_class1', 'recurse_class2']
|
||||
from import_tree. import pkg
|
||||
|
||||
#? 18 ['pkg']
|
||||
@@ -236,3 +236,11 @@ import json, datetime
|
||||
from import_tree.mod1 import c
|
||||
#? set
|
||||
c
|
||||
|
||||
from import_tree import recurse_class1
|
||||
|
||||
#? ['a']
|
||||
recurse_class1.C.a
|
||||
# github #239 RecursionError
|
||||
#? ['a']
|
||||
recurse_class1.C().a
|
||||
|
||||
Reference in New Issue
Block a user