Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/sphinx-doc/sphinx.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTakeshi KOMIYA <i.tkomiya@gmail.com>2018-01-22 16:05:38 +0300
committerTakeshi KOMIYA <i.tkomiya@gmail.com>2018-02-04 09:14:51 +0300
commitdc2b153835af985c1bd940aa4116b78bf248b6e0 (patch)
tree29383d6007d2f13c517ae4646e639362017aa9d4 /sphinx/versioning.py
parent498fa379efe5b6b106c8d3eb56041164cdc8bab3 (diff)
Update type annotations
Diffstat (limited to 'sphinx/versioning.py')
-rw-r--r--sphinx/versioning.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/sphinx/versioning.py b/sphinx/versioning.py
index bd0928775..a855cb8fe 100644
--- a/sphinx/versioning.py
+++ b/sphinx/versioning.py
@@ -158,6 +158,7 @@ class UIDTransform(SphinxTransform):
default_priority = 100
def apply(self):
+ # type: () -> None
env = self.env
old_doctree = None
if env.versioning_compare:
@@ -177,6 +178,7 @@ class UIDTransform(SphinxTransform):
def prepare(document):
+ # type: (nodes.Node) -> None
"""Simple wrapper for UIDTransform."""
transform = UIDTransform(document)
transform.apply()