(
objtype: _AutodocObjType,
name: str,
*,
current_document: _CurrentDocument | None = None,
ref_context: Mapping[str, str | None] | None = None,
)
| 18 | |
| 19 | |
| 20 | def parse_name( |
| 21 | objtype: _AutodocObjType, |
| 22 | name: str, |
| 23 | *, |
| 24 | current_document: _CurrentDocument | None = None, |
| 25 | ref_context: Mapping[str, str | None] | None = None, |
| 26 | ) -> tuple[str, list[str], str | None, str | None] | None: |
| 27 | if current_document is None: |
| 28 | current_document = _CurrentDocument() |
| 29 | if ref_context is None: |
| 30 | ref_context = {} |
| 31 | |
| 32 | parsed = _parse_name( |
| 33 | name=name, |
| 34 | objtype=objtype, |
| 35 | current_document=current_document, |
| 36 | ref_context=ref_context, |
| 37 | ) |
| 38 | if parsed is None: |
| 39 | return None |
| 40 | module_name, parts, args, retann = parsed |
| 41 | return module_name, list(parts), args, retann |
| 42 | |
| 43 | |
| 44 | def test_parse_module_names(caplog: pytest.LogCaptureFixture) -> None: |
no test coverage detected
searching dependent graphs…