From 00b220516de9a7d4e1ea313e0474840ca2e8d8c1 Mon Sep 17 00:00:00 2001 From: Endill Date: Sat, 26 Oct 2019 09:40:11 +0300 Subject: [PATCH] Fix annotation string generated from wrong object --- jedi/inference/compiled/access.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jedi/inference/compiled/access.py b/jedi/inference/compiled/access.py index 75cf29d3..e65c855c 100644 --- a/jedi/inference/compiled/access.py +++ b/jedi/inference/compiled/access.py @@ -433,7 +433,7 @@ class DirectObjectAccess(object): default_string=repr(p.default), has_annotation=p.annotation is not p.empty, annotation=self._create_access_path(p.annotation), - annotation_string=str(p.default), + annotation_string=str(p.annotation), kind_name=str(p.kind) ) for p in self._get_signature().parameters.values() ]