Fix annotation string generated from wrong object

This commit is contained in:
Endill
2019-10-26 09:40:11 +03:00
committed by Dave Halter
parent a6fcf779d4
commit 00b220516d

View File

@@ -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()
]