Skip to content

Commit 4ab8939

Browse files
hive-botclaude
andcommitted
fix: annotate DocumentStatus.error_message as Optional[str]
The property was annotated Optional[int], but it holds the API's error message string. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1 parent b1a9c5c commit 4ab8939

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎deepl/api_data.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ def billed_characters(self) -> Optional[int]:
152152
return self._billed_characters
153153

154154
@property
155-
def error_message(self) -> Optional[int]:
155+
def error_message(self) -> Optional[str]:
156156
return self._error_message
157157

158158

0 commit comments

Comments
 (0)