Skip to content

Commit

Permalink
Mollify MyPy maybe
Browse files Browse the repository at this point in the history
  • Loading branch information
josiah-wolf-oberholtzer committed Mar 11, 2024
1 parent f2cf0c3 commit f6418ff
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions uqbar/book/sphinx.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
import sqlite3
import traceback
from typing import Any, Dict
from typing_extensions import ClassVar

from docutils.frontend import get_default_settings
from docutils.nodes import Element, General, doctest_block, literal_block
Expand Down Expand Up @@ -42,7 +43,7 @@ class UqbarBookDirective(Directive):
required_arguments = 0
optional_arguments = 0
final_argument_whitespace = True
option_spec: Dict[str, Any] = {"allow-exceptions": flag, "hide": flag}
option_spec: ClassVar[Dict[str, Any]] = {"allow-exceptions": flag, "hide": flag}

def run(self):
self.assert_has_content()
Expand All @@ -66,7 +67,7 @@ class UqbarBookDefaultsDirective(Directive):
has_content = False
required_arguments = 0
optional_arguments = 0
option_spec: Dict[str, Any] = {}
option_spec: ClassVar[Dict[str, Any]] = {}

def run(self):
block = uqbar_book_defaults_block()
Expand Down

0 comments on commit f6418ff

Please sign in to comment.