Message207004
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? |
|
Date |
User |
Action |
Args |
2013-12-27 17:08:13 | gennad | set | recipients:
+ gennad, larry, meador.inge, zach.ware, serhiy.storchaka, vajrasky |
2013-12-27 17:08:13 | gennad | set | messageid: <1388164093.92.0.368206377055.issue20075@psf.upfronthosting.co.za> |
2013-12-27 17:08:13 | gennad | link | issue20075 messages |
2013-12-27 17:08:13 | gennad | create | |
|