annotate stubs/rdflib/__init__.pyi @ 38:b3ae192c05e4

release 0.14.0 Ignore-this: cb2261459e7ec9c8c3706e067e1fc037
author Drew Perttula <drewp@bigasterisk.com>
date Sat, 25 May 2019 23:55:15 +0000
parents 4f71d2a7a8d1
children 099c0a815bb7
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
33
4f71d2a7a8d1 some low-quality mostly generated mypy stubs. should be shared with my other builds
Drew Perttula <drewp@bigasterisk.com>
parents:
diff changeset
1 # Stubs for rdflib (Python 3.4)
4f71d2a7a8d1 some low-quality mostly generated mypy stubs. should be shared with my other builds
Drew Perttula <drewp@bigasterisk.com>
parents:
diff changeset
2 #
4f71d2a7a8d1 some low-quality mostly generated mypy stubs. should be shared with my other builds
Drew Perttula <drewp@bigasterisk.com>
parents:
diff changeset
3 from typing import Tuple, Union
4f71d2a7a8d1 some low-quality mostly generated mypy stubs. should be shared with my other builds
Drew Perttula <drewp@bigasterisk.com>
parents:
diff changeset
4
4f71d2a7a8d1 some low-quality mostly generated mypy stubs. should be shared with my other builds
Drew Perttula <drewp@bigasterisk.com>
parents:
diff changeset
5
4f71d2a7a8d1 some low-quality mostly generated mypy stubs. should be shared with my other builds
Drew Perttula <drewp@bigasterisk.com>
parents:
diff changeset
6 # this is the 1st way that worked. 'from rdflib.term import URIRef' did not work.
4f71d2a7a8d1 some low-quality mostly generated mypy stubs. should be shared with my other builds
Drew Perttula <drewp@bigasterisk.com>
parents:
diff changeset
7 import rdflib.namespace as _n
4f71d2a7a8d1 some low-quality mostly generated mypy stubs. should be shared with my other builds
Drew Perttula <drewp@bigasterisk.com>
parents:
diff changeset
8 Namespace = _n.Namespace
4f71d2a7a8d1 some low-quality mostly generated mypy stubs. should be shared with my other builds
Drew Perttula <drewp@bigasterisk.com>
parents:
diff changeset
9
4f71d2a7a8d1 some low-quality mostly generated mypy stubs. should be shared with my other builds
Drew Perttula <drewp@bigasterisk.com>
parents:
diff changeset
10 RDF: Namespace
4f71d2a7a8d1 some low-quality mostly generated mypy stubs. should be shared with my other builds
Drew Perttula <drewp@bigasterisk.com>
parents:
diff changeset
11 RDFS: Namespace
4f71d2a7a8d1 some low-quality mostly generated mypy stubs. should be shared with my other builds
Drew Perttula <drewp@bigasterisk.com>
parents:
diff changeset
12
4f71d2a7a8d1 some low-quality mostly generated mypy stubs. should be shared with my other builds
Drew Perttula <drewp@bigasterisk.com>
parents:
diff changeset
13 import rdflib.term as _t
4f71d2a7a8d1 some low-quality mostly generated mypy stubs. should be shared with my other builds
Drew Perttula <drewp@bigasterisk.com>
parents:
diff changeset
14 URIRef = _t.URIRef
4f71d2a7a8d1 some low-quality mostly generated mypy stubs. should be shared with my other builds
Drew Perttula <drewp@bigasterisk.com>
parents:
diff changeset
15 Literal = _t.Literal
4f71d2a7a8d1 some low-quality mostly generated mypy stubs. should be shared with my other builds
Drew Perttula <drewp@bigasterisk.com>
parents:
diff changeset
16 BNode = _t.BNode
4f71d2a7a8d1 some low-quality mostly generated mypy stubs. should be shared with my other builds
Drew Perttula <drewp@bigasterisk.com>
parents:
diff changeset
17
4f71d2a7a8d1 some low-quality mostly generated mypy stubs. should be shared with my other builds
Drew Perttula <drewp@bigasterisk.com>
parents:
diff changeset
18 import rdflib.graph as _g
4f71d2a7a8d1 some low-quality mostly generated mypy stubs. should be shared with my other builds
Drew Perttula <drewp@bigasterisk.com>
parents:
diff changeset
19 ConjunctiveGraph = _g.ConjunctiveGraph
4f71d2a7a8d1 some low-quality mostly generated mypy stubs. should be shared with my other builds
Drew Perttula <drewp@bigasterisk.com>
parents:
diff changeset
20 Graph = _g.Graph
4f71d2a7a8d1 some low-quality mostly generated mypy stubs. should be shared with my other builds
Drew Perttula <drewp@bigasterisk.com>
parents:
diff changeset
21
4f71d2a7a8d1 some low-quality mostly generated mypy stubs. should be shared with my other builds
Drew Perttula <drewp@bigasterisk.com>
parents:
diff changeset
22 # not part of rdflib
4f71d2a7a8d1 some low-quality mostly generated mypy stubs. should be shared with my other builds
Drew Perttula <drewp@bigasterisk.com>
parents:
diff changeset
23 StatementType = Tuple[Union[URIRef, BNode], URIRef, _t.Node, URIRef]