aboutsummaryrefslogtreecommitdiffstats
path: root/bsie/extractor/base.py
diff options
context:
space:
mode:
Diffstat (limited to 'bsie/extractor/base.py')
-rw-r--r--bsie/extractor/base.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/bsie/extractor/base.py b/bsie/extractor/base.py
index f92d7cc..bb2ee81 100644
--- a/bsie/extractor/base.py
+++ b/bsie/extractor/base.py
@@ -5,7 +5,8 @@ import abc
import typing
# bsie imports
-from bsie.utils import bsfs, node, ns
+from bsie.matcher import nodes
+from bsie.utils import bsfs, ns
# exports
__all__: typing.Sequence[str] = (
@@ -106,10 +107,10 @@ class Extractor(abc.ABC):
@abc.abstractmethod
def extract(
self,
- subject: node.Node,
+ subject: nodes.Entity,
content: typing.Any,
principals: typing.Iterable[bsfs.schema.Predicate],
- ) -> typing.Iterator[typing.Tuple[node.Node, bsfs.schema.Predicate, typing.Any]]:
+ ) -> typing.Iterator[typing.Tuple[nodes.Node, bsfs.schema.Predicate, typing.Any]]:
"""Return (node, predicate, value) triples."""
# FIXME: type annotation could be more strict: value is Hashable