Skip to content

Commit

Permalink
🐛 minor fix to sphinx config validation
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisjsewell committed Feb 28, 2023
1 parent 04efdc2 commit 58be3fe
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/autodoc2/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"""Analyse a python project and create documentation for it."""

__version__ = "0.4.0"
__version__ = "0.4.1"


def setup(app): # type: ignore
Expand Down
2 changes: 1 addition & 1 deletion src/autodoc2/sphinx/extension.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ def setup(app: Sphinx) -> dict[str, str | bool]:
sphinx_type = t.Any
if "sphinx_type" in field.metadata:
sphinx_type = field.metadata["sphinx_type"]
if sphinx_type in (str, int, float, bool):
if sphinx_type in (str, int, float, bool, list):
sphinx_type = (sphinx_type,)
app.add_config_value(
f"{CONFIG_PREFIX}{name}",
Expand Down

0 comments on commit 58be3fe

Please sign in to comment.