Message158924
This is non-trivial to fix. Although inspect.getfullargspec can be used, which does support keyword only arguments, inspect.formatargspec *doesn't* support them. (mock.create_autospec uses these to rebuild a compatible signature for generated mocks.)
The easiest route to fixing would be to extend formatargspec to optionally take extra arguments for kwonlyargs and kwonlydefaults. |
|
Date |
User |
Action |
Args |
2012-04-21 16:49:52 | michael.foord | set | recipients:
+ michael.foord, ezio.melotti, r.david.murray |
2012-04-21 16:49:52 | michael.foord | set | messageid: <1335026992.85.0.592858091004.issue14634@psf.upfronthosting.co.za> |
2012-04-21 16:49:52 | michael.foord | link | issue14634 messages |
2012-04-21 16:49:52 | michael.foord | create | |
|