Mercurial > code > home > repos > light9
annotate stubs/rdfdb/rdflibpatch.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 |
rev | line source |
---|---|
1863
0f0ff27e55a3
stubs, mostly autogen or empty
Drew Perttula <drewp@bigasterisk.com>
parents:
diff
changeset
|
1 # Stubs for rdfdb.rdflibpatch (Python 3) |
0f0ff27e55a3
stubs, mostly autogen or empty
Drew Perttula <drewp@bigasterisk.com>
parents:
diff
changeset
|
2 # |
0f0ff27e55a3
stubs, mostly autogen or empty
Drew Perttula <drewp@bigasterisk.com>
parents:
diff
changeset
|
3 # NOTE: This dynamically typed stub was automatically generated by stubgen. |
0f0ff27e55a3
stubs, mostly autogen or empty
Drew Perttula <drewp@bigasterisk.com>
parents:
diff
changeset
|
4 |
0f0ff27e55a3
stubs, mostly autogen or empty
Drew Perttula <drewp@bigasterisk.com>
parents:
diff
changeset
|
5 import unittest |
0f0ff27e55a3
stubs, mostly autogen or empty
Drew Perttula <drewp@bigasterisk.com>
parents:
diff
changeset
|
6 from typing import Any |
0f0ff27e55a3
stubs, mostly autogen or empty
Drew Perttula <drewp@bigasterisk.com>
parents:
diff
changeset
|
7 |
0f0ff27e55a3
stubs, mostly autogen or empty
Drew Perttula <drewp@bigasterisk.com>
parents:
diff
changeset
|
8 def patchQuads(graph: Any, deleteQuads: Any, addQuads: Any, perfect: bool = ...) -> None: ... |
0f0ff27e55a3
stubs, mostly autogen or empty
Drew Perttula <drewp@bigasterisk.com>
parents:
diff
changeset
|
9 def fixContextToUri(spoc: Any): ... |
0f0ff27e55a3
stubs, mostly autogen or empty
Drew Perttula <drewp@bigasterisk.com>
parents:
diff
changeset
|
10 def inGraph(spoc: Any, graph: Any): ... |
0f0ff27e55a3
stubs, mostly autogen or empty
Drew Perttula <drewp@bigasterisk.com>
parents:
diff
changeset
|
11 def graphFromQuads(q: Any): ... |
0f0ff27e55a3
stubs, mostly autogen or empty
Drew Perttula <drewp@bigasterisk.com>
parents:
diff
changeset
|
12 def graphFromNQuad(text: Any): ... |
0f0ff27e55a3
stubs, mostly autogen or empty
Drew Perttula <drewp@bigasterisk.com>
parents:
diff
changeset
|
13 def serializeQuad(g: Any): ... |
0f0ff27e55a3
stubs, mostly autogen or empty
Drew Perttula <drewp@bigasterisk.com>
parents:
diff
changeset
|
14 def inContext(graph: Any, newContext: Any): ... |
0f0ff27e55a3
stubs, mostly autogen or empty
Drew Perttula <drewp@bigasterisk.com>
parents:
diff
changeset
|
15 def contextsForStatement(graph: Any, triple: Any): ... |
0f0ff27e55a3
stubs, mostly autogen or empty
Drew Perttula <drewp@bigasterisk.com>
parents:
diff
changeset
|
16 |
0f0ff27e55a3
stubs, mostly autogen or empty
Drew Perttula <drewp@bigasterisk.com>
parents:
diff
changeset
|
17 A: Any |
0f0ff27e55a3
stubs, mostly autogen or empty
Drew Perttula <drewp@bigasterisk.com>
parents:
diff
changeset
|
18 B: Any |
0f0ff27e55a3
stubs, mostly autogen or empty
Drew Perttula <drewp@bigasterisk.com>
parents:
diff
changeset
|
19 |
0f0ff27e55a3
stubs, mostly autogen or empty
Drew Perttula <drewp@bigasterisk.com>
parents:
diff
changeset
|
20 class TestInContext(unittest.TestCase): |
0f0ff27e55a3
stubs, mostly autogen or empty
Drew Perttula <drewp@bigasterisk.com>
parents:
diff
changeset
|
21 def testResultHasQuads(self) -> None: ... |
0f0ff27e55a3
stubs, mostly autogen or empty
Drew Perttula <drewp@bigasterisk.com>
parents:
diff
changeset
|
22 |
0f0ff27e55a3
stubs, mostly autogen or empty
Drew Perttula <drewp@bigasterisk.com>
parents:
diff
changeset
|
23 class TestContextsForStatement(unittest.TestCase): |
0f0ff27e55a3
stubs, mostly autogen or empty
Drew Perttula <drewp@bigasterisk.com>
parents:
diff
changeset
|
24 def testNotFound(self) -> None: ... |
0f0ff27e55a3
stubs, mostly autogen or empty
Drew Perttula <drewp@bigasterisk.com>
parents:
diff
changeset
|
25 def testOneContext(self) -> None: ... |
0f0ff27e55a3
stubs, mostly autogen or empty
Drew Perttula <drewp@bigasterisk.com>
parents:
diff
changeset
|
26 def testTwoContexts(self) -> None: ... |
0f0ff27e55a3
stubs, mostly autogen or empty
Drew Perttula <drewp@bigasterisk.com>
parents:
diff
changeset
|
27 |
0f0ff27e55a3
stubs, mostly autogen or empty
Drew Perttula <drewp@bigasterisk.com>
parents:
diff
changeset
|
28 class TestInGraph(unittest.TestCase): |
0f0ff27e55a3
stubs, mostly autogen or empty
Drew Perttula <drewp@bigasterisk.com>
parents:
diff
changeset
|
29 def testSimpleMatch(self) -> None: ... |
0f0ff27e55a3
stubs, mostly autogen or empty
Drew Perttula <drewp@bigasterisk.com>
parents:
diff
changeset
|
30 def testDontMatchDifferentStatement(self) -> None: ... |
0f0ff27e55a3
stubs, mostly autogen or empty
Drew Perttula <drewp@bigasterisk.com>
parents:
diff
changeset
|
31 def testDontMatchStatementInAnotherContext(self) -> None: ... |
0f0ff27e55a3
stubs, mostly autogen or empty
Drew Perttula <drewp@bigasterisk.com>
parents:
diff
changeset
|
32 |
0f0ff27e55a3
stubs, mostly autogen or empty
Drew Perttula <drewp@bigasterisk.com>
parents:
diff
changeset
|
33 class TestGraphFromQuads(unittest.TestCase): |
0f0ff27e55a3
stubs, mostly autogen or empty
Drew Perttula <drewp@bigasterisk.com>
parents:
diff
changeset
|
34 nqOut: str = ... |
0f0ff27e55a3
stubs, mostly autogen or empty
Drew Perttula <drewp@bigasterisk.com>
parents:
diff
changeset
|
35 def testSerializes(self) -> None: ... |
0f0ff27e55a3
stubs, mostly autogen or empty
Drew Perttula <drewp@bigasterisk.com>
parents:
diff
changeset
|
36 def testNquadParserSerializes(self) -> None: ... |
0f0ff27e55a3
stubs, mostly autogen or empty
Drew Perttula <drewp@bigasterisk.com>
parents:
diff
changeset
|
37 |
0f0ff27e55a3
stubs, mostly autogen or empty
Drew Perttula <drewp@bigasterisk.com>
parents:
diff
changeset
|
38 C: Any |
0f0ff27e55a3
stubs, mostly autogen or empty
Drew Perttula <drewp@bigasterisk.com>
parents:
diff
changeset
|
39 CTX1: Any |
0f0ff27e55a3
stubs, mostly autogen or empty
Drew Perttula <drewp@bigasterisk.com>
parents:
diff
changeset
|
40 CTX2: Any |
0f0ff27e55a3
stubs, mostly autogen or empty
Drew Perttula <drewp@bigasterisk.com>
parents:
diff
changeset
|
41 stmt1: Any |
0f0ff27e55a3
stubs, mostly autogen or empty
Drew Perttula <drewp@bigasterisk.com>
parents:
diff
changeset
|
42 stmt2: Any |
0f0ff27e55a3
stubs, mostly autogen or empty
Drew Perttula <drewp@bigasterisk.com>
parents:
diff
changeset
|
43 |
0f0ff27e55a3
stubs, mostly autogen or empty
Drew Perttula <drewp@bigasterisk.com>
parents:
diff
changeset
|
44 class TestPatchQuads(unittest.TestCase): |
0f0ff27e55a3
stubs, mostly autogen or empty
Drew Perttula <drewp@bigasterisk.com>
parents:
diff
changeset
|
45 def testAddsToNewContext(self) -> None: ... |
0f0ff27e55a3
stubs, mostly autogen or empty
Drew Perttula <drewp@bigasterisk.com>
parents:
diff
changeset
|
46 def testDeletes(self) -> None: ... |
0f0ff27e55a3
stubs, mostly autogen or empty
Drew Perttula <drewp@bigasterisk.com>
parents:
diff
changeset
|
47 def testDeleteRunsBeforeAdd(self) -> None: ... |
0f0ff27e55a3
stubs, mostly autogen or empty
Drew Perttula <drewp@bigasterisk.com>
parents:
diff
changeset
|
48 def testPerfectAddRejectsExistingStmt(self) -> None: ... |
0f0ff27e55a3
stubs, mostly autogen or empty
Drew Perttula <drewp@bigasterisk.com>
parents:
diff
changeset
|
49 def testPerfectAddAllowsExistingStmtInNewContext(self) -> None: ... |
0f0ff27e55a3
stubs, mostly autogen or empty
Drew Perttula <drewp@bigasterisk.com>
parents:
diff
changeset
|
50 def testPerfectDeleteRejectsAbsentStmt(self) -> None: ... |
0f0ff27e55a3
stubs, mostly autogen or empty
Drew Perttula <drewp@bigasterisk.com>
parents:
diff
changeset
|
51 def testPerfectDeleteRejectsStmtFromOtherGraph(self) -> None: ... |
0f0ff27e55a3
stubs, mostly autogen or empty
Drew Perttula <drewp@bigasterisk.com>
parents:
diff
changeset
|
52 def testPerfectDeleteAllowsRemovalOfStmtInMultipleContexts(self) -> None: ... |
0f0ff27e55a3
stubs, mostly autogen or empty
Drew Perttula <drewp@bigasterisk.com>
parents:
diff
changeset
|
53 def testRedundantStmtOkForAddOrDelete(self) -> None: ... |