Skip to content

Commit

Permalink
Try to fix failing linting test.
Browse files Browse the repository at this point in the history
  • Loading branch information
HaudinFlorence committed Oct 8, 2024
1 parent f88620e commit 248ddff
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions nbconvert/exporters/html.py
Original file line number Diff line number Diff line change
Expand Up @@ -266,9 +266,7 @@ def from_notebook_node( # type:ignore[explicit-override, override]
markdown_collection = markdown_collection + cell.source + "\n"

resources = self._init_resources(resources)
resources.update(
{"tableofcontents": extract_titles_from_markdown_input(markdown_collection)}
)
resources["tableofcontents"] = extract_titles_from_markdown_input(markdown_collection)

filter_data_type = WidgetsDataTypeFilter(
notebook_metadata=self._nb_metadata, parent=self, resources=resources
Expand Down Expand Up @@ -357,7 +355,7 @@ def resources_include_url(name):

resources = super()._init_resources(resources)
if resources is None:
resources = {}
resources: Optional[Dict[str, Any]] = {}
resources["theme"] = self.theme
resources["include_css"] = resources_include_css
resources["include_lab_theme"] = resources_include_lab_theme
Expand Down

0 comments on commit 248ddff

Please sign in to comment.