comparison 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
comparison
equal deleted inserted replaced
1862:d92757c88817 1863:0f0ff27e55a3
1 # Stubs for rdfdb.patch (Python 3)
2 #
3 # NOTE: This dynamically typed stub was automatically generated by stubgen.
4
5 import unittest
6 from typing import Any, Optional
7
8 XSD: Any
9 ALLSTMTS: Any
10
11 def quadsWithContextUris(quads: Any) -> None: ...
12
13 class Patch:
14 senderUpdateUri: Any = ...
15 def __init__(self, jsonRepr: Optional[Any] = ..., addQuads: Optional[Any] = ..., delQuads: Optional[Any] = ..., addGraph: Optional[Any] = ..., delGraph: Optional[Any] = ...) -> None: ...
16 def shortSummary(self): ...
17 @classmethod
18 def fromDiff(cls, oldGraph: Any, newGraph: Any): ...
19 def __bool__(self): ...
20 @property
21 def addQuads(self): ...
22 @property
23 def delQuads(self): ...
24 @property
25 def addGraph(self): ...
26 @property
27 def delGraph(self): ...
28 @property
29 def jsonRepr(self): ...
30 def makeJsonRepr(self, extraAttrs: Any = ...): ...
31 def simplify(self): ...
32 def concat(self, more: Any): ...
33 def getContext(self): ...
34 def isNoop(self): ...
35
36 stmt1: Any
37
38 class TestPatchFromDiff(unittest.TestCase):
39 def testEmpty(self) -> None: ...
40 def testNonEmpty(self) -> None: ...
41 def testNoticesAdds(self) -> None: ...
42 def testNoticesDels(self) -> None: ...
43 def testQuadSequenceOkInsteadOfGraph(self) -> None: ...
44
45 class TestPatchGetContext(unittest.TestCase):
46 def testEmptyPatchCantGiveContext(self) -> None: ...
47 def testSimplePatchReturnsContext(self) -> None: ...
48 def testMultiContextPatchFailsToReturnContext(self) -> None: ...