| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 58e798e commit d0b5ae3
2 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,9 +1,11 @@ | |||
| 1 | 1 | import inspect | |
| 2 | 2 | import os | |
| 3 | + from typing import Sequence | ||
| 3 | 4 | ||
| 4 | 5 | import jinja2 | |
| 5 | 6 | import sphinx | |
| 6 | 7 | import sphinx.ext.napoleon as napoleon | |
| 8 | + from sphinx.config import _ConfigRebuild | ||
| 7 | 9 | from sphinx.ext.napoleon.docstring import GoogleDocstring | |
| 8 | 10 | ||
| 9 | 11 | ||
@@ -20,9 +22,11 @@ def setup(app): | |||
| 20 | 22 | app.connect("autodoc-process-docstring", _process_docstring) | |
| 21 | 23 | app.connect("autodoc-skip-member", napoleon._skip_member) | |
| 22 | 24 | ||
| 23 | - conf = napoleon.Config._config_values | ||
| 25 | + conf: Sequence[tuple[str, bool | None, _ConfigRebuild, set[type]]] = ( | ||
| 26 | + napoleon.Config._config_values | ||
| 27 | + ) | ||
| 24 | 28 | ||
| 25 | - for name, (default, rebuild) in conf.items(): | ||
| 29 | + for name, default, rebuild, _ in conf: | ||
| 26 | 30 | app.add_config_value(name, default, rebuild) | |
| 27 | 31 | return {"version": sphinx.__display_version__, "parallel_read_safe": True} | |
| 28 | 32 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -2,6 +2,6 @@ | |||
| 2 | 2 | furo==2024.8.6 | |
| 3 | 3 | jinja2==3.1.5 | |
| 4 | 4 | myst-parser==4.0.1 | |
| 5 | - sphinx==8.1.3 | ||
| 5 | + sphinx==8.2.1 | ||
| 6 | 6 | sphinxcontrib-autoprogram==0.1.9 | |
| 7 | 7 | sphinx-autobuild==2024.10.3 | |
| Back | FazBrowse Home | New Git URL |
0 commit comments