diff options
author | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2019-05-30 01:19:21 +0900 |
---|---|---|
committer | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2019-06-02 17:51:20 +0900 |
commit | afbf6d811dd4fc514d63e9dc3d6bee78d97b8a0c (patch) | |
tree | bc5307c546e47262914ef8c25ab64de87136e1a3 /sphinx/util/typing.py | |
parent | 27dd8367c65c4313d499d945e7a2804865a1754a (diff) | |
download | sphinx-git-afbf6d811dd4fc514d63e9dc3d6bee78d97b8a0c.tar.gz |
Migrate to py3 style type annotation: sphinx.util
Diffstat (limited to 'sphinx/util/typing.py')
-rw-r--r-- | sphinx/util/typing.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sphinx/util/typing.py b/sphinx/util/typing.py index 78e8fe61f..77724d38b 100644 --- a/sphinx/util/typing.py +++ b/sphinx/util/typing.py @@ -23,6 +23,9 @@ TextlikeNode = Union[nodes.Text, nodes.TextElement] # type of None NoneType = type(None) +# path matcher +PathMatcher = Callable[[str], bool] + # common role functions RoleFunction = Callable[[str, str, str, int, Inliner, Dict, List[str]], Tuple[List[nodes.Node], List[nodes.system_message]]] |