Skip to content

Commit a970f8d

Browse files
authored
Discard changes to myst_nb/sphinx_ext.py
1 parent 6d8447d commit a970f8d

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

myst_nb/sphinx_ext.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -52,13 +52,13 @@ def sphinx_setup(app: Sphinx):
5252
for name, default, field in NbParserConfig().as_triple():
5353
if not field.metadata.get("sphinx_exclude"):
5454
# TODO add types?
55-
app.add_config_value(f"nb_{name}", default, "env", [object])
55+
app.add_config_value(f"nb_{name}", default, "env", Any)
5656
if "legacy_name" in field.metadata:
5757
app.add_config_value(
58-
f"{field.metadata['legacy_name']}", _UNSET, "env", [object]
58+
f"{field.metadata['legacy_name']}", _UNSET, "env", Any
5959
)
6060
# Handle non-standard deprecation
61-
app.add_config_value("nb_render_priority", _UNSET, "env", [object])
61+
app.add_config_value("nb_render_priority", _UNSET, "env", Any)
6262

6363
# generate notebook configuration from Sphinx configuration
6464
# this also validates the configuration values
@@ -130,7 +130,7 @@ def create_mystnb_config(app):
130130
"""Generate notebook configuration from Sphinx configuration"""
131131

132132
# Ignore type checkers because the attribute is dynamically assigned
133-
from sphinx.util.console import bold
133+
from sphinx.util.console import bold # type: ignore[attr-defined]
134134

135135
values = {}
136136
for name, _, field in NbParserConfig().as_triple():
@@ -227,4 +227,4 @@ def add_per_page_html_resources(
227227
return
228228
js_files = NbMetadataCollector.get_js_files(cast(SphinxEnvType, app.env), pagename)
229229
for path, kwargs in js_files.values():
230-
app.add_js_file(path, **kwargs)
230+
app.add_js_file(path, **kwargs) # type: ignore

0 commit comments

Comments
 (0)