File tree Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Original file line number Diff line number Diff line change 5
5
from glob import glob
6
6
7
7
from pathlib import Path
8
+ from pprint import pprint
8
9
from typing import List , Optional
9
10
10
11
import typer
@@ -110,7 +111,7 @@ def test_model(
110
111
ret_code = 0
111
112
else :
112
113
print (f"Model test for { model_rdf } using { weight_format } weight format has FAILED!" )
113
- print (summary )
114
+ pprint (summary )
114
115
ret_code = 1
115
116
sys .exit (ret_code )
116
117
@@ -138,7 +139,7 @@ def test_resource(
138
139
ret_code = 0
139
140
else :
140
141
print (f"Resource test for { rdf } has FAILED!" )
141
- print (summary )
142
+ pprint (summary )
142
143
ret_code = 1
143
144
sys .exit (ret_code )
144
145
Original file line number Diff line number Diff line change @@ -63,7 +63,7 @@ class Badge(Node, rdf_raw_nodes.Badge):
63
63
64
64
65
65
@dataclass
66
- class RDF (rdf_raw_nodes .RDF , Node ):
66
+ class RDF (rdf_raw_nodes .RDF , ResourceDescription ):
67
67
badges : Union [_Missing , List [Badge ]] = missing
68
68
covers : Union [_Missing , List [Path ]] = missing
69
69
@@ -79,7 +79,7 @@ class ModelParent(Node, model_raw_nodes.ModelParent):
79
79
80
80
81
81
@dataclass
82
- class Collection (RDF , collection_raw_nodes .Collection ):
82
+ class Collection (collection_raw_nodes .Collection , RDF ):
83
83
pass
84
84
85
85
@@ -174,7 +174,7 @@ class Attachments(Node, rdf_raw_nodes.Attachments):
174
174
175
175
176
176
@dataclass
177
- class Model (model_raw_nodes .Model , RDF , Node ):
177
+ class Model (model_raw_nodes .Model , RDF ):
178
178
authors : List [Author ] = missing
179
179
maintainers : Union [_Missing , List [Maintainer ]] = missing
180
180
test_inputs : List [Path ] = missing
You can’t perform that action at this time.
0 commit comments