mirror of
https://github.com/davidhalter/jedi.git
synced 2025-12-07 22:44:27 +08:00
Fix annotation string generated from wrong object
This commit is contained in:
@@ -433,7 +433,7 @@ class DirectObjectAccess(object):
|
|||||||
default_string=repr(p.default),
|
default_string=repr(p.default),
|
||||||
has_annotation=p.annotation is not p.empty,
|
has_annotation=p.annotation is not p.empty,
|
||||||
annotation=self._create_access_path(p.annotation),
|
annotation=self._create_access_path(p.annotation),
|
||||||
annotation_string=str(p.default),
|
annotation_string=str(p.annotation),
|
||||||
kind_name=str(p.kind)
|
kind_name=str(p.kind)
|
||||||
) for p in self._get_signature().parameters.values()
|
) for p in self._get_signature().parameters.values()
|
||||||
]
|
]
|
||||||
|
|||||||
Reference in New Issue
Block a user