11import pathlib
22from dataclasses import dataclass
33from pathlib import Path
4- from typing import Callable , Dict , List , Tuple , Union
4+ from typing import Any , Callable , Dict , List , Tuple , Union
55
66from marshmallow import missing
77from marshmallow .utils import _Missing
@@ -177,7 +177,8 @@ class TensorflowSavedModelBundleWeightsEntry(Node, model_raw_nodes.TensorflowSav
177177
178178@dataclass
179179class Attachments (Node , model_raw_nodes .Attachments ):
180- files : List [Path ] = missing
180+ files : Union [_Missing , List [Path ]] = missing
181+ unknown : Union [_Missing , Dict [str , Any ]] = missing
181182
182183
183184WeightsEntry = Union [
@@ -192,7 +193,7 @@ class Attachments(Node, model_raw_nodes.Attachments):
192193
193194@dataclass
194195class Model (model_raw_nodes .Model , RDF , Node ):
195- authors : List [Author ] = missing # type: ignore # base RDF has List[Union[Author, str]], but should change soon
196+ authors : List [Author ] = missing
196197 maintainers : Union [_Missing , List [Maintainer ]] = missing
197198 test_inputs : List [Path ] = missing
198199 test_outputs : List [Path ] = missing
0 commit comments