summaryrefslogtreecommitdiff
path: root/sphinx/pycode/parser.py
diff options
context:
space:
mode:
Diffstat (limited to 'sphinx/pycode/parser.py')
-rw-r--r--sphinx/pycode/parser.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/sphinx/pycode/parser.py b/sphinx/pycode/parser.py
index c3b17c6dd..aecb095b2 100644
--- a/sphinx/pycode/parser.py
+++ b/sphinx/pycode/parser.py
@@ -7,7 +7,6 @@ import inspect
import itertools
import re
import tokenize
-from collections import OrderedDict
from inspect import Signature
from token import DEDENT, INDENT, NAME, NEWLINE, NUMBER, OP, STRING
from tokenize import COMMENT, NL
@@ -221,7 +220,7 @@ class VariableCommentPicker(ast.NodeVisitor):
self.context: list[str] = []
self.current_classes: list[str] = []
self.current_function: ast.FunctionDef | None = None
- self.comments: dict[tuple[str, str], str] = OrderedDict()
+ self.comments: dict[tuple[str, str], str] = {}
self.annotations: dict[tuple[str, str], str] = {}
self.previous: ast.AST | None = None
self.deforders: dict[str, int] = {}