1
0
forked from VimPlug/jedi

Fix all gradual tests

This commit is contained in:
Dave Halter
2019-05-05 15:33:56 +02:00
parent 329270e444
commit 171874d288
7 changed files with 59 additions and 48 deletions
-6
View File
@@ -393,12 +393,6 @@ class BoundMethod(FunctionMixin, ContextWrapper):
if isinstance(self._wrapped_context, OverloadedFunctionContext):
return self._wrapped_context.py__call__(self._get_arguments(arguments))
# This might not be the most beautiful way, but prefer stub_contexts
# and execute those if possible.
stub_context = self._wrapped_context.stub_context
if stub_context is not None:
return stub_context.py__call__(arguments)
function_execution = self.get_function_execution(arguments)
return function_execution.infer()
+3
View File
@@ -93,6 +93,9 @@ class ModuleMixin(SubModuleDictMixin):
def is_module(self):
return True
def is_stub(self):
return False
@property
@evaluator_method_cache()
def name(self):