Return the call signature for any callable object. If any exception is generated, None is returned instead and the exception is suppressed.
(self,obj,oname='')
| 417 | return self.parser.format(*args, **kwargs) |
| 418 | |
| 419 | def _getdef(self,obj,oname='') -> Union[str,None]: |
| 420 | """Return the call signature for any callable object. |
| 421 | |
| 422 | If any exception is generated, None is returned instead and the |
| 423 | exception is suppressed.""" |
| 424 | if not callable(obj): |
| 425 | return None |
| 426 | try: |
| 427 | return _render_signature(signature(obj), oname) |
| 428 | except Exception: |
| 429 | return None |
| 430 | |
| 431 | def __head(self, h: str) -> str: |
| 432 | """Return a header string with proper colors.""" |
no test coverage detected