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
for (_s, _p, _o), cginself.__store.triples((s, p, o), context=self):
529
+
# 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]]"
530
+
# 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=context):
1810
1831
yields, p, o
1811
1832
1812
-
defquads(self, triple_or_quad=None):
1833
+
defquads(
1834
+
self,
1835
+
triple_or_quad: Union[
1836
+
"_TriplePatternType",
1837
+
"_QuadPatternType",
1838
+
None,
1839
+
] =None,
1840
+
) ->Generator[_OptionalQuadType, None, None]:
1813
1841
"""Iterate over all the quads in the entire conjunctive graph"""
1814
1842
1815
1843
s, p, o, c=self._spoc(triple_or_quad)
1816
1844
1817
-
for (s, p, o), cginself.store.triples((s, p, o), context=c):
1845
+
# 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]]"
1846
+
# NOTE on type error: This is because the store typing is too narrow, willbe fixed in subsequent PR.
# type error: Incompatible types in "yield" (actual type "Tuple[Optional[Node], Optional[Node], Optional[Node], Any]", expected type "Tuple[Node, Node, Node, Optional[Graph]]")
1850
+
yields, p, o, ctx# type: ignore[misc]
1820
1851
1821
1852
deftriples_choices(self, triple, context=None):
1822
1853
"""Iterate over all the triples in the entire conjunctive graph"""
# type error: Return type "Generator[Tuple[Node, Node, Node, Optional[Node]], None, None]" of "quads" incompatible with return type "Generator[Tuple[Node, Node, Node, Optional[Graph]], None, None]" in supertype "ConjunctiveGraph"
# type error: Item "None" of "Optional[Graph]" has no attribute "identifier" [union-attr]
2195
+
yields, p, o, c.identifier# type: ignore[union-attr]
2155
2196
2156
2197
# type error: Return type "Generator[Tuple[Node, URIRef, Node, Optional[IdentifiedNode]], None, None]" of "__iter__" incompatible with return type "Generator[Tuple[IdentifiedNode, IdentifiedNode, Union[IdentifiedNode, Literal]], None, None]" in supertype "Graph"
0 commit comments