Skip to content

Commit

Permalink
Attempt to fix other mypy error
Browse files Browse the repository at this point in the history
  • Loading branch information
gmarkall committed May 1, 2024
1 parent 5cbbbb4 commit 2d97902
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cunumeric/_sphinxext/_cunumeric_directive.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,14 @@
from __future__ import annotations

from docutils import nodes
from docutils.statemachine import ViewList
from docutils.statemachine import StringList
from sphinx.util.docutils import SphinxDirective
from sphinx.util.nodes import nested_parse_with_titles


class CunumericDirective(SphinxDirective):
def parse(self, rst_text: str, annotation: str) -> list[nodes.Node]:
result = ViewList()
result = StringList()
for line in rst_text.split("\n"):
result.append(line, annotation)
node = nodes.paragraph()
Expand Down

0 comments on commit 2d97902

Please sign in to comment.