1
0
forked from VimPlug/jedi

Refactor the ClassName to allow inheritance in different modules. Fixes #884.

This commit is contained in:
Dave Halter
2017-04-04 20:10:47 +02:00
parent d41e036427
commit 947d91f792
3 changed files with 37 additions and 6 deletions

View File

@@ -493,3 +493,19 @@ B().a
B.b
#? int()
B().b
# -----------------
# With import
# -----------------
from import_tree.classes import Config2, BaseClass
class Config(BaseClass):
"""#884"""
#? Config2()
Config.mode
#? int()
Config.mode2

View File

@@ -69,7 +69,7 @@ from import_tree.pkg.mod1 import not_existant, # whitespace before
from import_tree.pkg.mod1 import not_existant,
#? 22 ['mod1']
from import_tree.pkg. import mod1
#? 17 ['mod1', 'mod2', 'random', 'pkg', 'rename1', 'rename2', 'recurse_class1', 'recurse_class2', 'invisible_pkg', 'flow_import']
#? 17 ['mod1', 'mod2', 'random', 'pkg', 'rename1', 'rename2', 'classes', 'recurse_class1', 'recurse_class2', 'invisible_pkg', 'flow_import']
from import_tree. import pkg
#? 18 ['pkg']