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):
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.
for (s, p, o), cginself.store.triples((s, p, o), context=context):
1809
1830
yields, p, o
1810
1831
1811
-
defquads(self, triple_or_quad=None):
1832
+
defquads(
1833
+
self,
1834
+
triple_or_quad: Union[
1835
+
"_TriplePatternType",
1836
+
"_QuadPatternType",
1837
+
None,
1838
+
] =None,
1839
+
) ->Generator[_OptionalQuadType, None, None]:
1812
1840
"""Iterate over all the quads in the entire conjunctive graph"""
1813
1841
1814
1842
s, p, o, c=self._spoc(triple_or_quad)
1815
1843
1816
-
for (s, p, o), cginself.store.triples((s, p, o), context=c):
1844
+
# 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.
# 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]
1819
1850
1820
1851
deftriples_choices(self, triple, context=None):
1821
1852
"""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]
2194
+
yields, p, o, c.identifier# type: ignore[union-attr]
2154
2195
2155
2196
# 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