Add the flask plugin and move the import hacks there

This commit is contained in:
Dave Halter committed 2018-07-23 04:04:21 +02:00
1 parent 8a9202135b
commit 27ab4ba339
5 files changed
+38 -13

No files matched your search

+4
View File
@@ -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()