File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed
autointent/modules/prediction Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change 126126nbsphinx_prolog = """
127127:tutorial_name: {{ env.docname }}
128128"""
129- nbsphinx_execute = "never"
129+ # nbsphinx_execute = "never"
130130nbsphinx_thumbnails = {
131131 "user_guides/*" : "_static/square-white.svg" ,
132132}
You can’t perform that action at this time.
0 commit comments