You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is a branch I'm maintaing with a bunch of typing, I'm planning to
integrate it with master in parts, anyone is welcome to have a look but
most of what is happening here is subject to change.
Copy file name to clipboardExpand all lines: rdflib/graph.py
+11-12Lines changed: 11 additions & 12 deletions
Original file line number
Diff line number
Diff line change
@@ -525,9 +525,7 @@ def triples(
525
525
for_s, _oinp.eval(self, s, o):
526
526
yield_s, p, _o
527
527
else:
528
-
# type error: Argument 1 to "triples" of "Store" has incompatible type "Tuple[Optional[Node], Optional[Node], Optional[Node]]"; expected "Tuple[Optional[IdentifiedNode], Optional[IdentifiedNode], Optional[Node]]"
529
-
# NOTE on type error: This is because the store typing is too narrow, willbe fixed in subsequent PR.
# type error: Argument 1 to "triples" of "Store" has incompatible type "Tuple[Optional[Node], Optional[Node], Optional[Node]]"; expected "Tuple[Optional[IdentifiedNode], Optional[IdentifiedNode], Optional[Node]]"
1845
-
# NOTE on type error: This is because the store typing is too narrow, willbe fixed in subsequent PR.
for (s, p, o), cginself.store.triples((s, p, o), context=c):
1847
1846
forctxincg:
1848
-
# type error: Incompatible types in "yield" (actual type "Tuple[Optional[Node], Optional[Node], Optional[Node], Any]", expected type "Tuple[Node, Node, Node, Optional[Graph]]")
1849
-
yields, p, o, ctx# type: ignore[misc]
1847
+
yields, p, o, ctx
1850
1848
1851
1849
deftriples_choices(self, triple, context=None):
1852
1850
"""Iterate over all the triples in the entire conjunctive graph"""
0 commit comments