Skip to content

Commit 5febac5

Browse files
committed
fix docs problem
1 parent 4d68a25 commit 5febac5

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

autointent/modules/prediction/_threshold.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,11 @@ def load(self, path: str) -> None:
182182
metadata: ThresholdPredictorDumpMetadata = json.load(file)
183183

184184
self.multilabel = metadata["multilabel"]
185-
self.tags = [Tag(**tag) for tag in metadata["tags"] if metadata["tags"] and isinstance(metadata["tags"], list)] # type: ignore[arg-type, union-attr]
185+
self.tags = (
186+
[Tag(**tag) for tag in metadata["tags"]] # type: ignore[arg-type]
187+
if metadata["tags"] and isinstance(metadata["tags"], list)
188+
else None
189+
)
186190
self.thresh = metadata["thresh"]
187191
self.n_classes = metadata["n_classes"]
188192
self.metadata = metadata

docs/source/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@
126126
nbsphinx_prolog = """
127127
:tutorial_name: {{ env.docname }}
128128
"""
129-
nbsphinx_execute = "never"
129+
# nbsphinx_execute = "never"
130130
nbsphinx_thumbnails = {
131131
"user_guides/*": "_static/square-white.svg",
132132
}

0 commit comments

Comments
 (0)