diff --git a/stubs/rdfdb/patch.pyi b/stubs/rdfdb/patch.pyi new file mode 100644 --- /dev/null +++ b/stubs/rdfdb/patch.pyi @@ -0,0 +1,48 @@ +# Stubs for rdfdb.patch (Python 3) +# +# NOTE: This dynamically typed stub was automatically generated by stubgen. + +import unittest +from typing import Any, Optional + +XSD: Any +ALLSTMTS: Any + +def quadsWithContextUris(quads: Any) -> None: ... + +class Patch: + senderUpdateUri: Any = ... + def __init__(self, jsonRepr: Optional[Any] = ..., addQuads: Optional[Any] = ..., delQuads: Optional[Any] = ..., addGraph: Optional[Any] = ..., delGraph: Optional[Any] = ...) -> None: ... + def shortSummary(self): ... + @classmethod + def fromDiff(cls, oldGraph: Any, newGraph: Any): ... + def __bool__(self): ... + @property + def addQuads(self): ... + @property + def delQuads(self): ... + @property + def addGraph(self): ... + @property + def delGraph(self): ... + @property + def jsonRepr(self): ... + def makeJsonRepr(self, extraAttrs: Any = ...): ... + def simplify(self): ... + def concat(self, more: Any): ... + def getContext(self): ... + def isNoop(self): ... + +stmt1: Any + +class TestPatchFromDiff(unittest.TestCase): + def testEmpty(self) -> None: ... + def testNonEmpty(self) -> None: ... + def testNoticesAdds(self) -> None: ... + def testNoticesDels(self) -> None: ... + def testQuadSequenceOkInsteadOfGraph(self) -> None: ... + +class TestPatchGetContext(unittest.TestCase): + def testEmptyPatchCantGiveContext(self) -> None: ... + def testSimplePatchReturnsContext(self) -> None: ... + def testMultiContextPatchFailsToReturnContext(self) -> None: ...