mirror of
https://github.com/davidhalter/jedi.git
synced 2026-05-18 06:19:39 +08:00
Remove "typing." prefix from compiled signature param
This commit is contained in:
@@ -487,7 +487,7 @@ class DirectObjectAccess(object):
|
|||||||
def _annotation_to_str(self, annotation):
|
def _annotation_to_str(self, annotation):
|
||||||
if isinstance(annotation, type):
|
if isinstance(annotation, type):
|
||||||
return str(annotation.__name__)
|
return str(annotation.__name__)
|
||||||
return str(annotation)
|
return str(annotation).replace('typing.', '')
|
||||||
|
|
||||||
def get_signature_params(self):
|
def get_signature_params(self):
|
||||||
return [
|
return [
|
||||||
|
|||||||
Reference in New Issue
Block a user