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 7 insertions and 2 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): ...
 
@@ -47,12 +47,14 @@ class TurtleSerializer(RecursiveSerializ
 
    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: ...
0 comments (0 inline, 0 general)