Message207004
| Author |
gennad |
| Recipients |
gennad, larry, meador.inge, serhiy.storchaka, vajrasky, zach.ware |
| Date |
2013年12月27日.17:08:13 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1388164093.92.0.368206377055.issue20075@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
Thank you for the comments! I'll update the patch.
BTW is it safe to update Lib/inspect.py:2004 ?
- return cls(parameters, return_annotation=cls.empty)
+ return cls(parameters, return_annotation=f.returns.s or cls.empty)
Looks like the return value is not shown in signature (if it parsed correctly) because currently we explicitly pass cls.empty instance, but if we'd pass f.returns.s, the return value is shown.
Or it is correct behavior? |
|