comparison 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
comparison
equal deleted inserted replaced
1252:9cfa7f69e41f 1253:0e7044b23dad
1 # Stubs for rdflib (Python 3.4) 1 # Stubs for rdflib (Python 3.4)
2 # 2 #
3 # NOTE: This dynamically typed stub was automatically generated by stubgen. 3 from typing import Tuple, Union
4 4
5 from rdflib.term import URIRef, BNode, Literal, Variable 5
6 from rdflib.namespace import Namespace
7 from rdflib.graph import Dataset, Graph, ConjunctiveGraph
8 from rdflib.namespace import RDF, RDFS, OWL, XSD 6 from rdflib.namespace import RDF, RDFS, OWL, XSD
9 7
8 # this is the 1st way that worked. 'from rdflib.term import URIRef' did not work.
9 import rdflib.namespace as _n
10 Namespace = _n.Namespace
11
12 import rdflib.term as _t
13 URIRef = _t.URIRef
14 Literal = _t.Literal
15 BNode = _t.BNode
16
17 import rdflib.graph as _g
18 ConjunctiveGraph = _g.ConjunctiveGraph
19 Graph = _g.Graph
20
21 # not part of rdflib
22 StatementType = Tuple[Union[URIRef, BNode], URIRef, _t.Node, URIRef]