Skip to content

Commit 81345e0

Browse files
Remove unused ExtractTextResponse
Assisted-by: Codex
1 parent 38e209c commit 81345e0

2 files changed

Lines changed: 0 additions & 30 deletions

File tree

src/pdfrest/models/__init__.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
from .public import (
2-
ExtractTextResponse,
32
PdfRestDeletionResponse,
43
PdfRestErrorResponse,
54
PdfRestFile,
@@ -13,7 +12,6 @@
1312
)
1413

1514
__all__ = [
16-
"ExtractTextResponse",
1715
"PdfRestDeletionResponse",
1816
"PdfRestErrorResponse",
1917
"PdfRestFile",

src/pdfrest/models/public.py

Lines changed: 0 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020
from typing_extensions import override
2121

2222
__all__ = (
23-
"ExtractTextResponse",
2423
"PdfRestDeletionResponse",
2524
"PdfRestErrorResponse",
2625
"PdfRestFile",
@@ -403,33 +402,6 @@ class TranslatePdfTextFileResponse(PdfRestFileBasedResponse):
403402
] = None
404403

405404

406-
class ExtractTextResponse(BaseModel):
407-
"""Response returned by the extracted-text tool."""
408-
409-
model_config = ConfigDict(extra="allow")
410-
411-
full_text: Annotated[
412-
str | None,
413-
Field(
414-
alias="fullText",
415-
validation_alias=AliasChoices("full_text", "fullText"),
416-
description="Inline extracted text when output_type is json.",
417-
default=None,
418-
),
419-
] = None
420-
input_id: Annotated[
421-
PdfRestFileID,
422-
Field(
423-
validation_alias=AliasChoices("input_id", "inputId"),
424-
description="The id of the input file.",
425-
),
426-
]
427-
warning: Annotated[
428-
str | None,
429-
Field(description="A warning that was generated during text extraction."),
430-
] = None
431-
432-
433405
class PdfRestInfoResponse(BaseModel):
434406
"""A response containing the output from the /info route."""
435407

0 commit comments

Comments
 (0)