We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
ast.Str
1 parent e6debe8 commit 7b3baceCopy full SHA for 7b3bace
src/pytkdocs/parsers/attributes.py
@@ -47,7 +47,7 @@ def get_pairs(nodes: list) -> Iterator[tuple]: # noqa: D103
47
node1 = nodes[index]
48
node2 = nodes[index + 1] if index < len(nodes) - 1 else None
49
if isinstance(node1, (ast.Assign, ast.AnnAssign)):
50
- if isinstance(node2, ast.Expr) and isinstance(node2.value, ast.Str):
+ if isinstance(node2, ast.Expr) and isinstance(node2.value, ast.Constant):
51
yield node1, node2.value
52
index += 2
53
else:
0 commit comments