Convert signature in form of "(self: TestClass, arg0: str='ada')" to List[TypedArgList].
(docstr: str)
| 420 | |
| 421 | |
| 422 | def infer_arg_sig_from_anon_docstring(docstr: str) -> list[ArgSig]: |
| 423 | """Convert signature in form of "(self: TestClass, arg0: str='ada')" to List[TypedArgList].""" |
| 424 | ret = infer_sig_from_docstring("stub" + docstr, "stub") |
| 425 | if ret: |
| 426 | return ret[0].args |
| 427 | return [] |
| 428 | |
| 429 | |
| 430 | def infer_ret_type_sig_from_docstring(docstr: str, name: str) -> str | None: |
searching dependent graphs…