Changeset - f1f426af34ed
[Not reviewed]
default
0 3 0
Drew Perttula - 6 years ago 2019-06-01 20:04:53
drewp@bigasterisk.com
3 files changed with 8 insertions and 3 deletions:
0 comments (0 inline, 0 general)
stubs/rdflib/__init__.pyi
Show inline comments
 
# Stubs for rdflib (Python 3.4)
 
#
 
from typing import Tuple, Union
 

	
 

	
 
# this is the 1st way that worked. 'from rdflib.term import URIRef' did not work.
 
import rdflib.namespace as _n
 
Namespace = _n.Namespace
 

	
 
RDF: Namespace
 
RDFS: Namespace
 
XSD: Namespace
 

	
 
import rdflib.term as _t
 
URIRef = _t.URIRef
 
Literal = _t.Literal
 
BNode = _t.BNode
 

	
 
import rdflib.graph as _g
 
ConjunctiveGraph = _g.ConjunctiveGraph
 
Graph = _g.Graph
 

	
 
# not part of rdflib
 
StatementType = Tuple[Union[URIRef, BNode], URIRef, _t.Node, URIRef]
stubs/rdflib/plugins/serializers/turtle.pyi
Show inline comments
 
# Stubs for rdflib.plugins.serializers.turtle (Python 3)
 
#
 
# NOTE: This dynamically typed stub was automatically generated by stubgen.
 

	
 
from rdflib.serializer import Serializer
 
from typing import Any, Optional
 
from typing import Any, Optional, Callable
 

	
 
class RecursiveSerializer(Serializer):
 
    topClasses: Any = ...
 
    predicateOrder: Any = ...
 
    maxDepth: int = ...
 
    indentString: str = ...
 
    stream: Any = ...
 
    def __init__(self, store: Any) -> None: ...
 
    def addNamespace(self, prefix: Any, uri: Any) -> None: ...
 
    def checkSubject(self, subject: Any): ...
 
    def isDone(self, subject: Any): ...
 
    def orderSubjects(self): ...
 
    def preprocess(self) -> None: ...
 
    def preprocessTriple(self, xxx_todo_changeme: Any) -> None: ...
 
    depth: int = ...
 
    lists: Any = ...
 
    namespaces: Any = ...
 
    def reset(self) -> None: ...
 
    def buildPredicateHash(self, subject: Any): ...
 
    def sortProperties(self, properties: Any): ...
 
    def subjectDone(self, subject: Any) -> None: ...
 
    def indent(self, modifier: int = ...): ...
 
    def write(self, text: Any) -> None: ...
 

	
 
@@ -35,24 +35,26 @@ class TurtleSerializer(RecursiveSerializ
 
    stream: Any = ...
 
    def __init__(self, store: Any) -> None: ...
 
    def addNamespace(self, prefix: Any, namespace: Any): ...
 
    def reset(self) -> None: ...
 
    base: Any = ...
 
    def serialize(self, stream: Any, base: Optional[Any] = ..., encoding: Optional[Any] = ..., spacious: Optional[Any] = ..., **args: Any) -> None: ...
 
    def preprocessTriple(self, triple: Any) -> None: ...
 
    def getQName(self, uri: Any, gen_prefix: bool = ...): ...
 
    def startDocument(self) -> None: ...
 
    def endDocument(self) -> None: ...
 
    def statement(self, subject: Any): ...
 
    def s_default(self, subject: Any): ...
 
    def s_squared(self, subject: Any): ...
 
    def path(self, node: Any, position: Any, newline: bool = ...) -> None: ...
 
    def p_default(self, node: Any, position: Any, newline: bool = ...): ...
 
    def label(self, node: Any, position: Any): ...
 
    def p_squared(self, node: Any, position: Any, newline: bool = ...): ...
 
    def isValidList(self, l: Any): ...
 
    def doList(self, l: Any) -> None: ...
 
    def predicateList(self, subject: Any, newline: bool = ...) -> None: ...
 
    def verb(self, node: Any, newline: bool = ...) -> None: ...
 
    def objectList(self, objects: Any) -> None: ...
 

	
 
OBJECT: Any
 
VERB: Any
 
_GEN_QNAME_FOR_DT: Callable
stubs/twisted/internet/__init__.pyi
Show inline comments
 
# Stubs for twisted.internet (Python 3)
 
#
 
# NOTE: This dynamically typed stub was automatically generated by stubgen.
 

	
 
from typing import Any, Optional
 
from .interfaces import IDelayedCall, IAddress, IListeningPort
 
    
 
import twisted.internet.protocol
 

	
 
class ReactorType: # abridged
 
    def listenTCP(self, port: Any, factory: Any, backlog: int = ..., interface: str = ...) -> IListeningPort: ...
 
    def listenTCP(self, port: int, factory: twisted.internet.protocol.ServerFactory, backlog: Optional[int] =50, interface: str = ...) -> IListeningPort: ...
 
    def connectTCP(self, host :bytes, port: int, factory: twisted.internet.protocol.ClientFactory, timeout: Optional[float] = 30): ...
 
    def seconds(self) -> None: ...
 
    def callLater(self, delay: Any, callable: Any, *args: Any, **kw: Any) -> IDelayedCall: ...
 
    def getDelayedCalls(self) -> None: ...
 
    def callFromThread(self, callable: Any, *args: Any, **kw: Any) -> None: ...
 
    def callInThread(self, callable: Any, *args: Any, **kwargs: Any) -> None: ...
 
    running: Any = ...
 
    def resolve(self, name: Any, timeout: int = ...) -> None: ...
 
    def run(self) -> None: ...
 
    def stop(self) -> None: ...
 
    def crash(self) -> None: ...
 
    def iterate(self, delay: int = ...) -> None: ...
 
    def fireSystemEvent(self, eventType: Any) -> None: ...
 
    def addSystemEventTrigger(self, phase: Any, eventType: Any, callable: Any, *args: Any, **kw: Any) -> None: ...
 
    def removeSystemEventTrigger(self, triggerID: Any) -> None: ...
 
    def callWhenRunning(self, callable: Any, *args: Any, **kw: Any) -> None: ...
 
    
 

	
 
reactor = ReactorType()
 

	
0 comments (0 inline, 0 general)