(
self, docstring: str
)
| 414 | _patch_float_precision(self._patch_float_precision) |
| 415 | |
| 416 | def _parse_directive( |
| 417 | self, docstring: str |
| 418 | ) -> tuple[str, dict[str, Directive]]: |
| 419 | directives = {} |
| 420 | for name, directive_cls in self.directives.items(): |
| 421 | docstring, direct = directive_cls[0]( |
| 422 | *directive_cls[1:] |
| 423 | ).parse_directive(docstring) |
| 424 | directives[name] = direct |
| 425 | |
| 426 | return docstring, directives |
| 427 | |
| 428 | def convert_directive(self, docstring: str) -> str: |
| 429 | """Replace directive prefix with xdoctest""" |
no test coverage detected