Michael Foord <mich...@voidspace.org.uk> added the comment:

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.

----------
assignee:  -> michael.foord

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue14634>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to