Add the flask plugin and move the import hacks there
This commit is contained in:
1 parent
8a9202135b
commit
27ab4ba339
5 files changed
+38
-13
No files matched your search
@@ -123,6 +123,10 @@ class Evaluator(object):
|
||||
from jedi.plugins import plugin_manager
|
||||
plugin_callbacks = plugin_manager.get_callbacks(self)
|
||||
self.execute = plugin_callbacks.decorate('execute', callback=execute)
|
||||
self.import_module = plugin_callbacks.decorate(
|
||||
'import_module',
|
||||
callback=imports.import_module
|
||||
)
|
||||
|
||||
@property
|
||||
@evaluator_function_cache()
|
||||
|
||||
Reference in new issue
Block a user