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>2021-01-02 18:20:27 +0300
committerTakeshi KOMIYA <i.tkomiya@gmail.com>2021-01-02 18:20:27 +0300
commita9c7dd70374b60d9eee640f8c78694c0b568b589 (patch)
tree653d1a2fe7f08b0b96270b3a2281048db5c78907 /sphinx/registry.py
parent4b452338f914d4f6b54704222d70ae8a746e3db5 (diff)
parent1b7d16505ea6e77586c6c4f4afc15a3e73116d80 (diff)
Merge branch '3.x'
Diffstat (limited to 'sphinx/registry.py')
-rw-r--r--sphinx/registry.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/sphinx/registry.py b/sphinx/registry.py
index 268248bca..168583739 100644
--- a/sphinx/registry.py
+++ b/sphinx/registry.py
@@ -60,7 +60,7 @@ class SphinxComponentRegistry:
self.documenters = {} # type: Dict[str, Type[Documenter]]
#: css_files; a list of tuple of filename and attributes
- self.css_files = [] # type: List[Tuple[str, Dict[str, str]]]
+ self.css_files = [] # type: List[Tuple[str, Dict[str, Any]]]
#: domains; a dict of domain name -> domain class
self.domains = {} # type: Dict[str, Type[Domain]]
@@ -91,7 +91,7 @@ class SphinxComponentRegistry:
self.html_block_math_renderers = {} # type: Dict[str, Tuple[Callable, Callable]]
#: js_files; list of JS paths or URLs
- self.js_files = [] # type: List[Tuple[str, Dict[str, str]]]
+ self.js_files = [] # type: List[Tuple[str, Dict[str, Any]]]
#: LaTeX packages; list of package names and its options
self.latex_packages = [] # type: List[Tuple[str, str]]
@@ -358,10 +358,10 @@ class SphinxComponentRegistry:
attrgetter: Callable[[Any, str, Any], Any]) -> None:
self.autodoc_attrgettrs[typ] = attrgetter
- def add_css_files(self, filename: str, **attributes: str) -> None:
+ def add_css_files(self, filename: str, **attributes: Any) -> None:
self.css_files.append((filename, attributes))
- def add_js_file(self, filename: str, **attributes: str) -> None:
+ def add_js_file(self, filename: str, **attributes: Any) -> None:
logger.debug('[app] adding js_file: %r, %r', filename, attributes)
self.js_files.append((filename, attributes))