From 889ffbf8e9351e9b848114998d9e7f2f63cdf821 Mon Sep 17 00:00:00 2001 From: Endill Date: Thu, 30 Apr 2020 10:16:10 +0300 Subject: [PATCH] Remove "typing." prefix from compiled signature param --- 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 99bd843c..f4b248bc 100644 --- a/jedi/inference/compiled/access.py +++ b/jedi/inference/compiled/access.py @@ -487,7 +487,7 @@ class DirectObjectAccess(object): def _annotation_to_str(self, annotation): if isinstance(annotation, type): return str(annotation.__name__) - return str(annotation) + return str(annotation).replace('typing.', '') def get_signature_params(self): return [