Skip to content

Commit b56de48

Browse files
committed
chore(mypy): Ignore Directive annotations for now
src/doctest_docutils.py:145: error: Cannot override instance variable (previously declared on base class "Directive") with class variable [misc] src/doctest_docutils.py:151: error: Cannot override instance variable (previously declared on base class "Directive") with class variable [misc] src/doctest_docutils.py:157: error: Cannot override instance variable (previously declared on base class "Directive") with class variable [misc] Found 3 errors in 1 file (checked 11 source files) See also: python/typeshed#11550
1 parent 7816e4e commit b56de48

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/doctest_docutils.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -142,20 +142,19 @@ def run(self) -> t.List[Node]:
142142
class TestsetupDirective(TestDirective):
143143
"""Test setup directive."""
144144

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

147147

148148
class TestcleanupDirective(TestDirective):
149149
"""Test cleanup directive."""
150150

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

153153

154154
class DoctestDirective(TestDirective):
155155
"""Doctest directive."""
156156

157-
option_spec: t.ClassVar[OptionSpec] = {
158-
"hide": directives.flag,
157+
option_spec: t.ClassVar[OptionSpec] = { # type:ignore
159158
"no-trim-doctest-flags": directives.flag,
160159
"options": directives.unchanged,
161160
"pyversion": directives.unchanged_required,

0 commit comments

Comments
 (0)