We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d39861f commit f99710fCopy full SHA for f99710f
src/unstructured_client/_hooks/custom/validation_errors.py
@@ -1,5 +1,7 @@
1
"""File validation error classes for the Unstructured client."""
2
3
+from typing import Optional
4
+
5
6
class FileValidationError(Exception):
7
"""Base exception for file validation errors.
@@ -8,7 +10,7 @@ class FileValidationError(Exception):
8
10
checks before being processed by the API.
9
11
"""
12
- def __init__(self, message: str, file_type: str = None):
- self.message = message
13
- self.file_type = file_type
+ def __init__(self, message: str, file_type: Optional[str] = None):
14
+ self.message: str = message
15
+ self.file_type: Optional[str] = file_type
16
super().__init__(self.message)
0 commit comments