Method: rich._inspect._first_paragraph
Calls: 21, Exceptions: 0, Paths: 1Back
Path 1: 21 calls (1.0)
"int([x]) -> integer\nint(x, base=10) -> integer\n\nConvert a number or string to an integer, or return 0 if no arguments\nare given. If x is a numbe...
'int([x]) -> integer\nint(x, base=10) -> integer' (3) 'Foo test' (1) 'constructor docs.' (1) 'Multi line' (1) "str(object='') -> str\nstr(bytes_or_buf...
1def _first_paragraph(doc: str) -> str:
2 """Get the first paragraph from a docstring."""
3 paragraph, _, _ = doc.partition("\n\n")
4 return paragraph