annotate stubs/rdflib/__init__.pyi @ 67:099c0a815bb7

stubs Ignore-this: c084e54b4fa9a6a8bd692add7e646f10
author Drew Perttula <drewp@bigasterisk.com>
date Sat, 01 Jun 2019 20:02:47 +0000
parents 4f71d2a7a8d1
children
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
67
Drew Perttula <drewp@bigasterisk.com>
parents: 33
diff changeset
12 XSD: Namespace
33
4f71d2a7a8d1 some low-quality mostly generated mypy stubs. should be shared with my other builds
Drew Perttula <drewp@bigasterisk.com>
parents:
diff changeset
13
4f71d2a7a8d1 some low-quality mostly generated mypy stubs. should be shared with my other builds
Drew Perttula <drewp@bigasterisk.com>
parents:
diff changeset
14 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
15 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
16 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
17 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
18
4f71d2a7a8d1 some low-quality mostly generated mypy stubs. should be shared with my other builds
Drew Perttula <drewp@bigasterisk.com>
parents:
diff changeset
19 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
20 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
21 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
22
4f71d2a7a8d1 some low-quality mostly generated mypy stubs. should be shared with my other builds
Drew Perttula <drewp@bigasterisk.com>
parents:
diff changeset
23 # 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
24 StatementType = Tuple[Union[URIRef, BNode], URIRef, _t.Node, URIRef]