comparison service/collector/stubs/rdflib/term.pyi @ 448:8cd163e0e50c

add some rdflib stubs Ignore-this: 20804bfeadf49741c27cb48d12e29b6b
author drewp@bigasterisk.com
date Thu, 18 Apr 2019 21:59:47 -0700
parents
children 5595c447c630
comparison
equal deleted inserted replaced
447:3d51d4b63497 448:8cd163e0e50c
1 # Stubs for rdflib.term (Python 3.4)
2 #
3 # NOTE: This dynamically typed stub was automatically generated by stubgen.
4
5 from typing import Any, Union
6 import datetime
7 from decimal import Decimal
8
9 class Node: ...
10
11 class Identifier(Node, str):
12 def __new__(cls, value): ...
13 def eq(self, other): ...
14 def neq(self, other): ...
15 def __ne__(self, other): ...
16 def __eq__(self, other): ...
17 def __gt__(self, other): ...
18 def __lt__(self, other): ...
19 def __le__(self, other): ...
20 def __ge__(self, other): ...
21 def __hash__(self): ...
22
23 class URIRef(Identifier):
24 def __new__(cls, value, base=None): ...
25 def toPython(self) -> str: ...
26 def n3(self, namespace_manager=None) -> bytes: ...
27 def defrag(self): ...
28 def __reduce__(self): ...
29 def __getnewargs__(self): ...
30 def __add__(self, other): ...
31 def __radd__(self, other): ...
32 def __mod__(self, other): ...
33 def md5_term_hash(self): ...
34 def de_skolemize(self): ...
35
36 class Genid(URIRef): ...
37 class RDFLibGenid(Genid): ...
38
39 class BNode(Identifier):
40 def __new__(cls, value=None, _sn_gen=..., _prefix=...): ...
41 def toPython(self) -> str: ...
42 def n3(self, namespace_manager=None) -> bytes: ...
43 def __getnewargs__(self): ...
44 def __reduce__(self): ...
45 def md5_term_hash(self): ...
46 def skolemize(self, authority=''): ...
47
48 class Literal(Identifier):
49 __doc__ = ... # type: Any
50 def __new__(cls, lexical_or_value, lang=None, datatype=None, normalize=None): ...
51 def normalize(self): ...
52 @property
53 def value(self): ...
54 @property
55 def language(self): ...
56 @property
57 def datatype(self): ...
58 def __reduce__(self): ...
59 def __add__(self, val): ...
60 def __bool__(self): ...
61 def __neg__(self): ...
62 def __pos__(self): ...
63 def __abs__(self): ...
64 def __invert__(self): ...
65 def __gt__(self, other): ...
66 def __lt__(self, other): ...
67 def __le__(self, other): ...
68 def __ge__(self, other): ...
69 def __hash__(self): ...
70 def __eq__(self, other): ...
71 def eq(self, other): ...
72 def neq(self, other): ...
73 def n3(self, namespace_manager=None) -> bytes: ...
74 # Literal has many converters:
75 def toPython(self) -> Union[Literal, str, int, float, bytes, bool, Decimal, datetime.datetime, datetime.date, datetime.time]: ...
76 def md5_term_hash(self): ...
77
78 def bind(datatype, pythontype, constructor=None, lexicalizer=None): ...
79
80 class Variable(Identifier):
81 def __new__(cls, value): ...
82 def toPython(self): ...
83 def n3(self, namespace_manager=None) -> bytes: ...
84 def __reduce__(self): ...
85 def md5_term_hash(self): ...
86
87 class Statement(Node, tuple):
88 def __new__(cls, xxx_todo_changeme, context): ...
89 def __reduce__(self): ...
90 def toPython(self): ...