summaryrefslogtreecommitdiff
path: root/sphinx/ext/autodoc/preserve_defaults.py
diff options
context:
space:
mode:
Diffstat (limited to 'sphinx/ext/autodoc/preserve_defaults.py')
-rw-r--r--sphinx/ext/autodoc/preserve_defaults.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/sphinx/ext/autodoc/preserve_defaults.py b/sphinx/ext/autodoc/preserve_defaults.py
index a12f42fcf..5ae3f3593 100644
--- a/sphinx/ext/autodoc/preserve_defaults.py
+++ b/sphinx/ext/autodoc/preserve_defaults.py
@@ -10,6 +10,7 @@ import sys
from inspect import Parameter
from typing import Any, Dict, List, Optional
+import sphinx
from sphinx.application import Sphinx
from sphinx.locale import __
from sphinx.pycode.ast import parse as ast_parse
@@ -121,6 +122,6 @@ def setup(app: Sphinx) -> Dict[str, Any]:
app.connect('autodoc-before-process-signature', update_defvalue)
return {
- 'version': '1.0',
+ 'version': sphinx.__display_version__,
'parallel_read_safe': True
}