aboutsummaryrefslogtreecommitdiffstats
path: root/bsfs/graph/nodes.py
diff options
context:
space:
mode:
authorMatthias Baumgartner <dev@igsor.net>2023-02-08 21:08:24 +0100
committerMatthias Baumgartner <dev@igsor.net>2023-02-08 21:08:24 +0100
commitf31a0d005785d474a37ec769c1f7f5e27aa08a57 (patch)
tree784c0ca9311dc43017418ff59ea88a2ea9815f8c /bsfs/graph/nodes.py
parent64f3ac76a2f8d6b51380c06233accfcc19dca228 (diff)
downloadbsfs-f31a0d005785d474a37ec769c1f7f5e27aa08a57.tar.gz
bsfs-f31a0d005785d474a37ec769c1f7f5e27aa08a57.tar.bz2
bsfs-f31a0d005785d474a37ec769c1f7f5e27aa08a57.zip
minor comments
Diffstat (limited to 'bsfs/graph/nodes.py')
-rw-r--r--bsfs/graph/nodes.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/bsfs/graph/nodes.py b/bsfs/graph/nodes.py
index 9990714..bc71a32 100644
--- a/bsfs/graph/nodes.py
+++ b/bsfs/graph/nodes.py
@@ -199,6 +199,7 @@ class Nodes():
"""Get values or nodes at *paths*.
Return an iterator (view=list) or a dict (view=dict) over the results.
"""
+ # FIXME: user-provided Fetch query AST?
# check args
if len(paths) == 0:
raise AttributeError('expected at least one path, found none')
@@ -345,6 +346,7 @@ class Nodes():
elif isinstance(pred.range, bsc.Node):
# check value type
+ # FIXME: value could be a set of Nodes
if not isinstance(value, Nodes):
raise TypeError(value)
# value's node_type must be a subclass of the predicate's range