Return number of parameters of the callable *func*.
(func)
| 1613 | @staticmethod |
| 1614 | @cache |
| 1615 | def number_of_parameters(func): |
| 1616 | """Return number of parameters of the callable *func*.""" |
| 1617 | return len(inspect.signature(func).parameters) |
| 1618 | |
| 1619 | @staticmethod |
| 1620 | @cache |