Skip to content

Commit

Permalink
fix py38 type subscript
Browse files Browse the repository at this point in the history
  • Loading branch information
iyume committed Feb 1, 2023
1 parent 25d6dbd commit eec0241
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nb_autodoc/analyzers/definitionfinder.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit eec0241

Please sign in to comment.