[issue42785] Support operator module callables in inspect.signature

2020-12-30 Thread Paolo Lammens
Paolo Lammens added the comment: Correction: ``` ValueError: callable operator.attrgetter('spam') is not supported by signature ``` -- ___ Python tracker ___

[issue42785] Support operator module callables in inspect.signature

2020-12-30 Thread Paolo Lammens
New submission from Paolo Lammens : Currently, `inspect.signature` doesn't support all callables from the `operator` module, e.g. `operator.attrgetter`: ```python >>> import inspect >>> import operator >>> inspect.signature(operator.attrgetter("spam")) ValueError: callable operator.attrgetter(