diff --git a/requirements.txt b/requirements.txt index 502f4ff..5b3ab96 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,8 +1,10 @@ +# Dependencies for old python versions pre-commit == 3.5.0; python_version < '3.9' pytest == 7.4.4; python_version < '3.10' sphinx == 7.4.7; python_version == '3.9' sphinx == 7.1.2; python_version == '3.8' +# Current dependencies pre-commit == 4.0.1; python_version >= '3.9' pytest == 8.3.3; python_version >= '3.10' sphinx == 8.1.3; python_version >= '3.10' diff --git a/src/sphinx_exec_code/sphinx_api.py b/src/sphinx_exec_code/sphinx_api.py index 9a03eb5..fb13f0d 100644 --- a/src/sphinx_exec_code/sphinx_api.py +++ b/src/sphinx_exec_code/sphinx_api.py @@ -1,6 +1,6 @@ import os from pathlib import Path -from typing import Any +from typing import Any, Dict from sphinx.application import Sphinx as SphinxApp @@ -19,7 +19,7 @@ def builder_ready(app: SphinxApp) -> None: SET_UTF8_ENCODING.from_app(app) -def setup(app) -> dict[str, Any]: +def setup(app) -> Dict[str, Any]: """ Register sphinx_execute_code directive with Sphinx """ confdir = Path(app.confdir)