From a5ce14c8bbd55f4a078ceea9384cda56bf42a18b Mon Sep 17 00:00:00 2001 From: Matthias Baumgartner Date: Sun, 18 Dec 2022 14:16:06 +0100 Subject: SparqlStore.exists bugfix --- bsfs/triple_store/sparql.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'bsfs') diff --git a/bsfs/triple_store/sparql.py b/bsfs/triple_store/sparql.py index 23059f7..7516dff 100644 --- a/bsfs/triple_store/sparql.py +++ b/bsfs/triple_store/sparql.py @@ -174,10 +174,8 @@ class SparqlStore(base.TripleStoreBase): self, node_type: bsc.Node, guids: typing.Iterable[URI], - ): - """ - """ - return {subj for subj in guids if self._has_type(subj, node_type)} + ) -> typing.Iterable[URI]: + return (subj for subj in guids if self._has_type(subj, node_type)) def create( self, -- cgit v1.2.3