aboutsummaryrefslogtreecommitdiffstats
path: root/python_openapi_client/fatcat_openapi_client/exceptions.pyi
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2021-11-17 16:08:43 -0800
committerBryan Newbold <bnewbold@robocracy.org>2021-11-23 17:39:02 -0800
commit82ee0c7d967e2ff40270a8435ea292b41e22fa17 (patch)
tree61092d32595a964e39a02f42e5b5f08c14ee7e03 /python_openapi_client/fatcat_openapi_client/exceptions.pyi
parenta1bb48b5d2e9536ee7b3da4a7721e049936793e8 (diff)
downloadfatcat-82ee0c7d967e2ff40270a8435ea292b41e22fa17.tar.gz
fatcat-82ee0c7d967e2ff40270a8435ea292b41e22fa17.zip
python client: start adding type annotation stubs
Diffstat (limited to 'python_openapi_client/fatcat_openapi_client/exceptions.pyi')
-rw-r--r--python_openapi_client/fatcat_openapi_client/exceptions.pyi26
1 files changed, 26 insertions, 0 deletions
diff --git a/python_openapi_client/fatcat_openapi_client/exceptions.pyi b/python_openapi_client/fatcat_openapi_client/exceptions.pyi
new file mode 100644
index 00000000..93d1afbd
--- /dev/null
+++ b/python_openapi_client/fatcat_openapi_client/exceptions.pyi
@@ -0,0 +1,26 @@
+from typing import Any
+
+class OpenApiException(Exception): ...
+
+class ApiTypeError(OpenApiException, TypeError):
+ path_to_item: Any
+ valid_classes: Any
+ key_type: Any
+ def __init__(self, msg: str, path_to_item: Any | None = ..., valid_classes: Any | None = ..., key_type: Any | None = ...) -> None: ...
+
+class ApiValueError(OpenApiException, ValueError):
+ path_to_item: Any
+ def __init__(self, msg: str, path_to_item: Any | None = ...) -> None: ...
+
+class ApiKeyError(OpenApiException, KeyError):
+ path_to_item: Any
+ def __init__(self, msg: str, path_to_item: Any | None = ...) -> None: ...
+
+class ApiException(OpenApiException):
+ status: int
+ reason: str
+ body: Any
+ headers: Any
+ def __init__(self, status: Any | None = ..., reason: Any | None = ..., http_resp: Any | None = ...) -> None: ...
+
+def render_path(path_to_item): ...