Skip to content

Commit 58be3fe

Browse files
committed
🐛 minor fix to sphinx config validation
1 parent 04efdc2 commit 58be3fe

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/autodoc2/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
"""Analyse a python project and create documentation for it."""
22

3-
__version__ = "0.4.0"
3+
__version__ = "0.4.1"
44

55

66
def setup(app): # type: ignore

src/autodoc2/sphinx/extension.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ def setup(app: Sphinx) -> dict[str, str | bool]:
4141
sphinx_type = t.Any
4242
if "sphinx_type" in field.metadata:
4343
sphinx_type = field.metadata["sphinx_type"]
44-
if sphinx_type in (str, int, float, bool):
44+
if sphinx_type in (str, int, float, bool, list):
4545
sphinx_type = (sphinx_type,)
4646
app.add_config_value(
4747
f"{CONFIG_PREFIX}{name}",

0 commit comments

Comments
 (0)