From c64e33173a8d6a4553f6c81a87ab3ddc84c4d16e Mon Sep 17 00:00:00 2001 From: Dave Halter Date: Mon, 28 Dec 2020 00:54:40 +0100 Subject: [PATCH] Fix an issue about properties, fixes #1705 --- jedi/inference/value/decorator.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/jedi/inference/value/decorator.py b/jedi/inference/value/decorator.py index 3d8df898..69c4cb6a 100644 --- a/jedi/inference/value/decorator.py +++ b/jedi/inference/value/decorator.py @@ -26,4 +26,9 @@ class Decoratee(ValueWrapper): return signatures # Fallback to signatures of the original function/class if the # decorator has no signature or it is not inferrable. - return self._original_value.get_signatures() + # + # __get__ means that it's a descriptor. In that case we don't return + # signatures, because they are usually properties. + if not self._wrapped_value.py__getattribute__('__get__'): + return self._original_value.get_signatures() + return []