1
0
forked from VimPlug/jedi

Make typed decorators work for instance methods

This feels incomplete when compared to FunctionMixin.py__get__,
however seems to work at least in the cut-down reported.

Fixes https://github.com/davidhalter/jedi/issues/1801.
This commit is contained in:
Peter Law
2021-12-12 17:36:53 +00:00
parent 72cf41f4c9
commit b6f761f13c
2 changed files with 53 additions and 0 deletions

View File

@@ -294,6 +294,9 @@ class Callable(BaseTypingInstance):
from jedi.inference.gradual.annotation import infer_return_for_callable
return infer_return_for_callable(arguments, param_values, result_values)
def py__get__(self, instance, class_value):
return ValueSet([self])
class Tuple(BaseTypingInstance):
def _is_homogenous(self):