view stubs/rdflib/__init__.pyi @ 35:deaabf47d82b

fix pyflakes warnings, including an error at import Ignore-this: a1baa5eeb251403e2a9506a1d1841ac8
author Drew Perttula <drewp@bigasterisk.com>
date Sat, 25 May 2019 06:39:05 +0000
parents 4f71d2a7a8d1
children 099c0a815bb7
line wrap: on
line source

# 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

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]