Mercurial > code > home > repos > homeauto
diff service/collector/stubs/rdflib/term.pyi @ 1253:0e7044b23dad
more stubs for collector typechecking
Ignore-this: 7151f942cfc29c2b3dfaa0a6b20222aa
darcs-hash:47577255eba6b501a19b06231945ae090c05f8fd
author | drewp <drewp@bigasterisk.com> |
---|---|
date | Fri, 19 Apr 2019 01:07:29 -0700 |
parents | b3813f6399a9 |
children |
line wrap: on
line diff
--- a/service/collector/stubs/rdflib/term.pyi Thu Apr 18 22:00:06 2019 -0700 +++ b/service/collector/stubs/rdflib/term.pyi Fri Apr 19 01:07:29 2019 -0700 @@ -1,53 +1,46 @@ -# Stubs for rdflib.term (Python 3.4) +# Stubs for rdflib.term (Python 3) # -# NOTE: This dynamically typed stub was automatically generated by stubgen. -from typing import Any, Union -import datetime -from decimal import Decimal +from typing import Any, Optional class Node: ... class Identifier(Node, str): - def __new__(cls, value): ... - def eq(self, other): ... - def neq(self, other): ... - def __ne__(self, other): ... - def __eq__(self, other): ... - def __gt__(self, other): ... - def __lt__(self, other): ... - def __le__(self, other): ... - def __ge__(self, other): ... + def __new__(cls, value: Any): ... + def eq(self, other: Any): ... + def neq(self, other: Any): ... + def __ne__(self, other: Any): ... + def __eq__(self, other: Any): ... + def __gt__(self, other: Any): ... + def __lt__(self, other: Any): ... + def __le__(self, other: Any): ... + def __ge__(self, other: Any): ... def __hash__(self): ... class URIRef(Identifier): - def __new__(cls, value, base=None): ... - def toPython(self) -> str: ... - def n3(self, namespace_manager=None) -> bytes: ... + def __new__(cls, value: Any, base: Optional[Any] = ...): ... + def toPython(self): ... + def n3(self, namespace_manager: Optional[Any] = ...): ... def defrag(self): ... def __reduce__(self): ... def __getnewargs__(self): ... - def __add__(self, other): ... - def __radd__(self, other): ... - def __mod__(self, other): ... + def __add__(self, other: Any): ... + def __radd__(self, other: Any): ... + def __mod__(self, other: Any): ... def md5_term_hash(self): ... def de_skolemize(self): ... -class Genid(URIRef): ... -class RDFLibGenid(Genid): ... - class BNode(Identifier): - def __new__(cls, value=None, _sn_gen=..., _prefix=...): ... - def toPython(self) -> str: ... - def n3(self, namespace_manager=None) -> bytes: ... + def __new__(cls, value: Optional[Any] = ..., _sn_gen: Any = ..., _prefix: Any = ...): ... + def toPython(self): ... + def n3(self, namespace_manager: Optional[Any] = ...): ... def __getnewargs__(self): ... def __reduce__(self): ... def md5_term_hash(self): ... - def skolemize(self, authority=''): ... + def skolemize(self, authority: str = ...): ... class Literal(Identifier): - __doc__ = ... # type: Any - def __new__(cls, lexical_or_value, lang=None, datatype=None, normalize=None): ... + def __new__(cls, lexical_or_value: Any, lang: Optional[Any] = ..., datatype: Optional[Any] = ..., normalize: Optional[Any] = ...): ... def normalize(self): ... @property def value(self): ... @@ -56,35 +49,22 @@ @property def datatype(self): ... def __reduce__(self): ... - def __add__(self, val): ... + def __add__(self, val: Any): ... def __bool__(self): ... def __neg__(self): ... def __pos__(self): ... def __abs__(self): ... def __invert__(self): ... - def __gt__(self, other): ... - def __lt__(self, other): ... - def __le__(self, other): ... - def __ge__(self, other): ... + def __gt__(self, other: Any): ... + def __lt__(self, other: Any): ... + def __le__(self, other: Any): ... + def __ge__(self, other: Any): ... def __hash__(self): ... - def __eq__(self, other): ... - def eq(self, other): ... - def neq(self, other): ... - def n3(self, namespace_manager=None) -> bytes: ... - # Literal has many converters: - def toPython(self) -> Union[Literal, str, int, float, bytes, bool, Decimal, datetime.datetime, datetime.date, datetime.time]: ... + def __eq__(self, other: Any): ... + def eq(self, other: Any): ... + def neq(self, other: Any): ... + def n3(self, namespace_manager: Optional[Any] = ...): ... + def toPython(self): ... def md5_term_hash(self): ... -def bind(datatype, pythontype, constructor=None, lexicalizer=None): ... - -class Variable(Identifier): - def __new__(cls, value): ... - def toPython(self): ... - def n3(self, namespace_manager=None) -> bytes: ... - def __reduce__(self): ... - def md5_term_hash(self): ... - -class Statement(Node, tuple): - def __new__(cls, xxx_todo_changeme, context): ... - def __reduce__(self): ... - def toPython(self): ... +def bind(datatype: Any, pythontype: Any, constructor: Optional[Any] = ..., lexicalizer: Optional[Any] = ...) -> None: ...