Mercurial > code > home > repos > homeauto
diff service/collector/stubs/rdflib/__init__.pyi @ 1253:0e7044b23dad
more stubs for collector typechecking
Ignore-this: 7151f942cfc29c2b3dfaa0a6b20222aa
darcs-hash:47577255eba6b501a19b06231945ae090c05f8fd
author | drewp <drewp@bigasterisk.com> |
---|---|
date | Fri, 19 Apr 2019 01:07:29 -0700 |
parents | b3813f6399a9 |
children |
line wrap: on
line diff
--- a/service/collector/stubs/rdflib/__init__.pyi Thu Apr 18 22:00:06 2019 -0700 +++ b/service/collector/stubs/rdflib/__init__.pyi Fri Apr 19 01:07:29 2019 -0700 @@ -1,9 +1,22 @@ # Stubs for rdflib (Python 3.4) # -# NOTE: This dynamically typed stub was automatically generated by stubgen. +from typing import Tuple, Union -from rdflib.term import URIRef, BNode, Literal, Variable -from rdflib.namespace import Namespace -from rdflib.graph import Dataset, Graph, ConjunctiveGraph + from rdflib.namespace import RDF, RDFS, OWL, XSD +# this is the 1st way that worked. 'from rdflib.term import URIRef' did not work. +import rdflib.namespace as _n +Namespace = _n.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]