@@ -1518,7 +1518,7 @@ def get(
15181518 )
15191519 else :
15201520 result = []
1521- for ( i , r , t ) in relationship_set .iter_low_level ():
1521+ for i , r , t in relationship_set .iter_low_level ():
15221522 if not t :
15231523 continue
15241524 session = self .session
@@ -1650,16 +1650,16 @@ def iter(
16501650 iterator = iter (relationship_set )
16511651 else :
16521652
1653- def iterator () -> Iterator [
1654- Tuple [OntologyIndividual , OntologyRelationship ]
1655- ] :
1653+ def iterator () -> (
1654+ Iterator [ Tuple [OntologyIndividual , OntologyRelationship ] ]
1655+ ) :
16561656 """Helper iterator.
16571657
16581658 The purpose of defining this iterator is to be able to
16591659 return it, instead of using the `yield` keyword on the main
16601660 function, as described on the comment above.
16611661 """
1662- for ( i , r , t ) in relationship_set .iter_low_level ():
1662+ for i , r , t in relationship_set .iter_low_level ():
16631663 if not t :
16641664 continue
16651665 session = self .session
@@ -2242,9 +2242,9 @@ def relationships_iter(
22422242 Iterator with the queried ontology individuals.
22432243 """
22442244
2245- def individuals_and_relationships () -> Iterator [
2246- OntologyIndividual , OntologyEntity
2247- ] :
2245+ def individuals_and_relationships () -> (
2246+ Iterator [ OntologyIndividual , OntologyEntity ]
2247+ ) :
22482248 for s , p , o in self .session .graph .triples (
22492249 (
22502250 self .identifier ,
0 commit comments