Skip to content

Commit cf39b3f

Browse files
committed
refactor: Simplify existing NotImplementedErrors
1 parent 5eb9a32 commit cf39b3f

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

pystac/stac_io.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ def read_text(
6262
Returns:
6363
str: The text contained in the file at the location specified by the uri.
6464
"""
65-
raise NotImplementedError("read_text not implemented")
65+
raise NotImplementedError
6666

6767
@abstractmethod
6868
def write_text(
@@ -79,7 +79,7 @@ def write_text(
7979
dest : The destination to write to.
8080
txt : The text to write.
8181
"""
82-
raise NotImplementedError("write_text not implemented")
82+
raise NotImplementedError
8383

8484
def json_loads(self, txt: str, *args: Any, **kwargs: Any) -> Dict[str, Any]:
8585
"""Method used internally by :class:`StacIO` instances to deserialize a

pystac/stac_object.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -528,6 +528,4 @@ def matches_object_type(cls, d: Dict[str, Any]) -> bool:
528528
Args:
529529
d : A dictionary to identify
530530
"""
531-
raise NotImplementedError(
532-
"identify_dict must be implemented by the STACObject subclass."
533-
)
531+
raise NotImplementedError

0 commit comments

Comments
 (0)