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