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.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/sphinx/ext/autodoc/preserve_defaults.py b/sphinx/ext/autodoc/preserve_defaults.py
index 0b6d183a4..7c5dfb7f1 100644
--- a/sphinx/ext/autodoc/preserve_defaults.py
+++ b/sphinx/ext/autodoc/preserve_defaults.py
@@ -4,6 +4,8 @@ Preserve the default argument values of function signatures in source code
and keep them not evaluated for readability.
"""
+from __future__ import annotations
+
import ast
import inspect
from typing import Any, Dict, List, Optional