view stubs/rdfdb/patch.pyi @ 1865:1aa91a31c0e2

reformat some missed files Ignore-this: f13152975437adeb48ed619ab676365e
author Drew Perttula <drewp@bigasterisk.com>
date Sat, 25 May 2019 12:06:01 +0000
parents 0f0ff27e55a3
children
line wrap: on
line source

# 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: ...