Skip to content

Commit

Permalink
linter
Browse files Browse the repository at this point in the history
  • Loading branch information
Charles Yuan authored and Charles Yuan committed Dec 16, 2024
1 parent 9aa3f48 commit cfc37b1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 10 deletions.
11 changes: 4 additions & 7 deletions any_parser/any_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,10 @@
from any_parser.async_parser import AsyncParser
from any_parser.batch_parser import BatchParser
from any_parser.constants import ProcessType
from any_parser.sync_parser import (
ExtractKeyValueSyncParser,
ExtractPIISyncParser,
ExtractResumeKeyValueSyncParser,
ExtractTablesSyncParser,
ParseSyncParser,
)
from any_parser.sync_parser import (ExtractKeyValueSyncParser,
ExtractPIISyncParser,
ExtractResumeKeyValueSyncParser,
ExtractTablesSyncParser, ParseSyncParser)
from any_parser.utils import validate_file_inputs

PUBLIC_SHARED_BASE_URL = "https://public-api.cambio-ai.com"
Expand Down
4 changes: 1 addition & 3 deletions tests/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,9 +116,7 @@ def test_pdf_async_parse_and_fetch_with_file_content(self):
file_type = Path(working_file).suffix.lower().lstrip(".")

# extract
file_id = self.ap.async_parse(
file_content=file_content, file_type=file_type
)
file_id = self.ap.async_parse(file_content=file_content, file_type=file_type)
self.assertFalse(file_id.startswith("Error:"), file_id)
# fetch
markdown_list = self.ap.async_fetch(file_id=file_id)
Expand Down

0 comments on commit cfc37b1

Please sign in to comment.