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>2020-01-01 05:39:46 +0300
committerTakeshi KOMIYA <i.tkomiya@gmail.com>2020-01-01 05:39:46 +0300
commite628afd5cd0c565f1e33abb01cac26180455182f (patch)
tree3b7cddfe175c444588a0b8d9e80430faeb994b8c /sphinx/io.py
parent9458d631d0393956005754ed8137809e15635467 (diff)
parentc5b653433d3fbdca47396f17161685f50d994320 (diff)
Merge branch '2.0'
Diffstat (limited to 'sphinx/io.py')
-rw-r--r--sphinx/io.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/sphinx/io.py b/sphinx/io.py
index 8f8eada4d..18b4f053e 100644
--- a/sphinx/io.py
+++ b/sphinx/io.py
@@ -4,7 +4,7 @@
Input/Output files
- :copyright: Copyright 2007-2019 by the Sphinx team, see AUTHORS.
+ :copyright: Copyright 2007-2020 by the Sphinx team, see AUTHORS.
:license: BSD, see LICENSE for details.
"""
import codecs
@@ -55,7 +55,7 @@ class SphinxBaseReader(standalone.Reader):
transforms = [] # type: List[Type[Transform]]
- def __init__(self, *args, **kwargs) -> None:
+ def __init__(self, *args: Any, **kwargs: Any) -> None:
from sphinx.application import Sphinx
if len(args) > 0 and isinstance(args[0], Sphinx):
self._app = args[0]
@@ -166,14 +166,14 @@ class SphinxDummyWriter(UnfilteredWriter):
pass
-def SphinxDummySourceClass(source: Any, *args, **kwargs) -> Any:
+def SphinxDummySourceClass(source: Any, *args: Any, **kwargs: Any) -> Any:
"""Bypass source object as is to cheat Publisher."""
return source
class SphinxFileInput(FileInput):
"""A basic FileInput for Sphinx."""
- def __init__(self, *args, **kwargs) -> None:
+ def __init__(self, *args: Any, **kwargs: Any) -> None:
kwargs['error_handler'] = 'sphinx'
super().__init__(*args, **kwargs)