| Conditions | 1 |
| Total Lines | 12 |
| Code Lines | 2 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | # Copyright Pincer 2021-Present |
||
| 36 | def get_params(func: Callable): |
||
| 37 | """Get the parameters from a coroutine. |
||
| 38 | |||
| 39 | func: Callable |
||
| 40 | The coroutine from whom the information should be extracted. |
||
| 41 | |||
| 42 | Returns |
||
| 43 | ------- |
||
| 44 | List[Union[:class:`str`, :class:`inspect.Parameter`]] |
||
| 45 | List of parameters of the coroutine. |
||
| 46 | """ |
||
| 47 | return get_signature_and_params(func)[1] |
||
| 48 |