Skip to content

Commit

Permalink
Revert "chore(mypy): Ignore Directive annotations for now"
Browse files Browse the repository at this point in the history
This reverts commit 2f96169.
  • Loading branch information
tony committed Mar 9, 2024
1 parent 6308fb7 commit 5163c91
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/doctest_docutils.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,19 +142,20 @@ def run(self) -> t.List[Node]:
class TestsetupDirective(TestDirective):
"""Test setup directive."""

option_spec: t.ClassVar[OptionSpec] = {"skipif": directives.unchanged_required} # type:ignore
option_spec: t.ClassVar[OptionSpec] = {"skipif": directives.unchanged_required}


class TestcleanupDirective(TestDirective):
"""Test cleanup directive."""

option_spec: t.ClassVar[OptionSpec] = {"skipif": directives.unchanged_required} # type:ignore
option_spec: t.ClassVar[OptionSpec] = {"skipif": directives.unchanged_required}


class DoctestDirective(TestDirective):
"""Doctest directive."""

option_spec: t.ClassVar[OptionSpec] = { # type:ignore
option_spec: t.ClassVar[OptionSpec] = {
"hide": directives.flag,
"no-trim-doctest-flags": directives.flag,
"options": directives.unchanged,
"pyversion": directives.unchanged_required,
Expand Down

0 comments on commit 5163c91

Please sign in to comment.