From eec0241655b3e57171d5acf3579ede879f1c7db4 Mon Sep 17 00:00:00 2001 From: iyume Date: Wed, 1 Feb 2023 21:17:29 +0800 Subject: [PATCH] fix py38 type subscript --- nb_autodoc/analyzers/definitionfinder.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nb_autodoc/analyzers/definitionfinder.py b/nb_autodoc/analyzers/definitionfinder.py index dff50c6..d33e3a3 100644 --- a/nb_autodoc/analyzers/definitionfinder.py +++ b/nb_autodoc/analyzers/definitionfinder.py @@ -18,7 +18,7 @@ _Member = Union["ImportFromData", "AssignData", "FunctionDefData", "ClassDefData"] -def _extract_docstring_scope(scope: dict[str, _Member]) -> dict[str, str]: +def _extract_docstring_scope(scope: Dict[str, _Member]) -> Dict[str, str]: res = {} for member in scope.values(): if isinstance(member, FunctionDefData) and member.assign_docstring: