aboutsummaryrefslogtreecommitdiffstats
path: root/bsie/base/reader.py
diff options
context:
space:
mode:
Diffstat (limited to 'bsie/base/reader.py')
-rw-r--r--bsie/base/reader.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/bsie/base/reader.py b/bsie/base/reader.py
index e59abef..b7eabf7 100644
--- a/bsie/base/reader.py
+++ b/bsie/base/reader.py
@@ -32,6 +32,12 @@ class Reader(abc.ABC):
def __repr__(self) -> str:
return f'{typename(self)}()'
+ def __eq__(self, other: typing.Any) -> bool:
+ return isinstance(other, type(self))
+
+ def __hash__(self) -> int:
+ return hash(type(self))
+
@abc.abstractmethod
def __call__(self, path: URI) -> typing.Any:
"""Return some content of the file at *path*.