@@ -135,7 +135,7 @@ def graph(self) -> Graph:
135135 return graph
136136
137137
138- class Savable (ABC ):
138+ class Saveable (ABC ):
139139 """Mark classes than have a save() and fromDoc() function."""
140140
141141 @classmethod
@@ -146,7 +146,7 @@ def fromDoc(
146146 baseuri : str ,
147147 loadingOptions : LoadingOptions ,
148148 docRoot : Optional [str ] = None ,
149- ) -> "Savable " :
149+ ) -> "Saveable " :
150150 """Construct this object from the result of yaml.load()."""
151151
152152 @abstractmethod
@@ -180,12 +180,12 @@ def load_field(val, fieldtype, baseuri, loadingOptions):
180180
181181
182182def save (
183- val : Optional [Union [Savable , MutableSequence [Savable ]]],
183+ val : Optional [Union [Saveable , MutableSequence [Saveable ]]],
184184 top : bool = True ,
185185 base_url : str = "" ,
186186 relative_uris : bool = True ,
187187) -> save_type :
188- if isinstance (val , Savable ):
188+ if isinstance (val , Saveable ):
189189 return val .save (top = top , base_url = base_url , relative_uris = relative_uris )
190190 if isinstance (val , MutableSequence ):
191191 return [
@@ -419,7 +419,7 @@ def load(self, doc, baseuri, loadingOptions, docRoot=None):
419419
420420class _RecordLoader (_Loader ):
421421 def __init__ (self , classtype ):
422- # type: (Type[Savable ]) -> None
422+ # type: (Type[Saveable ]) -> None
423423 self .classtype = classtype
424424
425425 def load (self , doc , baseuri , loadingOptions , docRoot = None ):
@@ -734,7 +734,7 @@ def parser_info() -> str:
734734 return "org.w3id.cwl.salad"
735735
736736
737- class Documented (Savable ):
737+ class Documented (Saveable ):
738738 pass
739739
740740
@@ -896,7 +896,7 @@ def save(
896896 attrs = frozenset (["doc" , "name" , "type" ])
897897
898898
899- class RecordSchema (Savable ):
899+ class RecordSchema (Saveable ):
900900 def __init__ (
901901 self ,
902902 type : Any ,
@@ -1016,7 +1016,7 @@ def save(
10161016 attrs = frozenset (["fields" , "type" ])
10171017
10181018
1019- class EnumSchema (Savable ):
1019+ class EnumSchema (Saveable ):
10201020 """
10211021 Define an enumerated type.
10221022
@@ -1138,7 +1138,7 @@ def save(
11381138 attrs = frozenset (["symbols" , "type" ])
11391139
11401140
1141- class ArraySchema (Savable ):
1141+ class ArraySchema (Saveable ):
11421142 def __init__ (
11431143 self ,
11441144 items : Any ,
@@ -1255,7 +1255,7 @@ def save(
12551255 attrs = frozenset (["items" , "type" ])
12561256
12571257
1258- class JsonldPredicate (Savable ):
1258+ class JsonldPredicate (Saveable ):
12591259 """
12601260 Attached to a record field to define how the parent record field is handled for
12611261 URI resolution and JSON-LD context generation.
@@ -1638,7 +1638,7 @@ def save(
16381638 )
16391639
16401640
1641- class SpecializeDef (Savable ):
1641+ class SpecializeDef (Saveable ):
16421642 def __init__ (
16431643 self ,
16441644 specializeFrom : Any ,
@@ -1757,7 +1757,7 @@ def save(
17571757 attrs = frozenset (["specializeFrom" , "specializeTo" ])
17581758
17591759
1760- class NamedType (Savable ):
1760+ class NamedType (Saveable ):
17611761 pass
17621762
17631763
0 commit comments