Mercurial > code > home > repos > light9
diff stubs/rdfdb/patch.pyi @ 1863:0f0ff27e55a3
stubs, mostly autogen or empty
Ignore-this: bc70818d2bc92bf022c65c3572b9775e
author | Drew Perttula <drewp@bigasterisk.com> |
---|---|
date | Sat, 25 May 2019 12:01:26 +0000 |
parents | |
children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/stubs/rdfdb/patch.pyi Sat May 25 12:01:26 2019 +0000 @@ -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: ...