massive update, probably broken
[dotfiles/.git] / .config / coc / extensions / node_modules / coc-pyright / node_modules / pyright / dist / typeshed-fallback / stubs / jsonschema / jsonschema / exceptions.pyi
1 from typing import Any
2
3 WEAK_MATCHES: Any
4 STRONG_MATCHES: Any
5
6 class _Error(Exception):
7     message: Any
8     path: Any
9     schema_path: Any
10     context: Any
11     cause: Any
12     validator: Any
13     validator_value: Any
14     instance: Any
15     schema: Any
16     parent: Any
17     def __init__(
18         self,
19         message,
20         validator=...,
21         path=...,
22         cause: Any | None = ...,
23         context=...,
24         validator_value=...,
25         instance=...,
26         schema=...,
27         schema_path=...,
28         parent: Any | None = ...,
29     ) -> None: ...
30     def __unicode__(self): ...
31     @classmethod
32     def create_from(cls, other): ...
33     @property
34     def absolute_path(self): ...
35     @property
36     def absolute_schema_path(self): ...
37
38 class ValidationError(_Error): ...
39 class SchemaError(_Error): ...
40
41 class RefResolutionError(Exception):
42     def __init__(self, cause) -> None: ...
43     def __lt__(self, other): ...
44     def __le__(self, other): ...
45     def __gt__(self, other): ...
46     def __ge__(self, other): ...
47
48 class UndefinedTypeCheck(Exception):
49     type: Any
50     def __init__(self, type) -> None: ...
51     def __unicode__(self): ...
52
53 class UnknownType(Exception):
54     type: Any
55     instance: Any
56     schema: Any
57     def __init__(self, type, instance, schema) -> None: ...
58     def __unicode__(self): ...
59
60 class FormatError(Exception):
61     message: Any
62     cause: Any
63     def __init__(self, message, cause: Any | None = ...) -> None: ...
64     def __unicode__(self): ...
65
66 class ErrorTree:
67     errors: Any
68     def __init__(self, errors=...) -> None: ...
69     def __contains__(self, index): ...
70     def __getitem__(self, index): ...
71     def __setitem__(self, index, value) -> None: ...
72     def __iter__(self): ...
73     def __len__(self): ...
74     @property
75     def total_errors(self): ...
76
77 def by_relevance(weak=..., strong=...): ...
78
79 relevance: Any
80
81 def best_match(errors, key=...): ...