Get parameter name and value from Jedi Private API Jedi does not expose a simple way to get `param=value` from its API. Parameters ---------- parameter Jedi's function `Param` Returns ------- A string like 'a', 'b=1', '*args', '**kwargs'
(parameter)
| 1810 | return no_match |
| 1811 | |
| 1812 | def _formatparamchildren(parameter) -> str: |
| 1813 | """ |
| 1814 | Get parameter name and value from Jedi Private API |
| 1815 | |
| 1816 | Jedi does not expose a simple way to get `param=value` from its API. |
| 1817 | |
| 1818 | Parameters |
| 1819 | ---------- |
| 1820 | parameter |
| 1821 | Jedi's function `Param` |
| 1822 | |
| 1823 | Returns |
| 1824 | ------- |
| 1825 | A string like 'a', 'b=1', '*args', '**kwargs' |
| 1826 | |
| 1827 | """ |
| 1828 | description = parameter.description |
| 1829 | if not description.startswith('param '): |
| 1830 | raise ValueError('Jedi function parameter description have change format.' |
| 1831 | 'Expected "param ...", found %r".' % description) |
| 1832 | return description[6:] |
| 1833 | |
| 1834 | def _make_signature(completion)-> str: |
| 1835 | """ |
no outgoing calls
no test coverage detected
searching dependent graphs…