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
@@ -534,9 +534,7 @@ def triples(
534
534
for_s, _oinp.eval(self, s, o):
535
535
yield_s, p, _o
536
536
else:
537
-
# 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]]"
538
-
# 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]]"
1872
-
# 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):
1874
1873
forctxincg:
1875
-
# type error: Incompatible types in "yield" (actual type "Tuple[Optional[Node], Optional[Node], Optional[Node], Any]", expected type "Tuple[Node, Node, Node, Optional[Graph]]")
1876
-
yields, p, o, ctx# type: ignore[misc]
1874
+
yields, p, o, ctx
1877
1875
1878
1876
deftriples_choices(self, triple, context=None):
1879
1877
"""Iterate over all the triples in the entire conjunctive graph"""
0 commit comments