1 import docutils.nodes
\r
2 import docutils.parsers.rst.states
\r
4 from typing import Callable, Any, List, Dict, Tuple
\r
6 def register_local_role(name: str,
\r
7 role_fn: Callable[[str, str, str, int, docutils.parsers.rst.states.Inliner, Dict, List],
\r
8 Tuple[List[docutils.nodes.reference], List[docutils.nodes.reference]]]
\r