@@ -424,7 +424,7 @@ def _object_links(self) -> List[str]:
424424 STACObjects linked to by this object (not including root, parent or self).
425425 This can include optional relations (which may not be present).
426426 """
427- pass
427+ raise NotImplementedError
428428
429429 @abstractmethod
430430 def to_dict (self , include_self_link : bool = True ) -> Dict [str , Any ]:
@@ -436,7 +436,7 @@ def to_dict(self, include_self_link: bool = True) -> Dict[str, Any]:
436436
437437 dict: A serialization of the object that can be written out as JSON.
438438 """
439- pass
439+ raise NotImplementedError
440440
441441 @abstractmethod
442442 def clone (self ) -> "STACObject" :
@@ -450,7 +450,7 @@ def clone(self) -> "STACObject":
450450 Returns:
451451 STACObject: The clone of this object.
452452 """
453- pass
453+ raise NotImplementedError
454454
455455 @classmethod
456456 def from_file (
@@ -521,7 +521,7 @@ def from_dict(
521521 Returns:
522522 STACObject: The STACObject parsed from this dict.
523523 """
524- pass
524+ raise NotImplementedError
525525
526526 @classmethod
527527 @abstractmethod
@@ -532,6 +532,4 @@ def matches_object_type(cls, d: Dict[str, Any]) -> bool:
532532 Args:
533533 d : A dictionary to identify
534534 """
535- raise NotImplementedError (
536- "identify_dict must be implemented by the STACObject subclass."
537- )
535+ raise NotImplementedError
0 commit comments