Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion unstructured/partition/auto.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ def partition(
ssl_verify: bool = True,
request_timeout: Optional[int] = None,
strategy: str = PartitionStrategy.AUTO,
skip_infer_table_types: list[str] = ["pdf", "jpg", "png", "heic"],
skip_infer_table_types: Optional[list[str]] = None,
ocr_languages: Optional[str] = None, # changing to optional for deprecation
languages: Optional[list[str]] = None,
detect_language_per_element: bool = False,
Expand Down Expand Up @@ -176,6 +176,11 @@ def partition(

set_partition_document_type(file_type)

# -- `None` is the documented default; set the actual default here so callers
# -- can tell an explicit value from the default (https://github.com/Unstructured-IO/unstructured/issues/3063)
if skip_infer_table_types is None:
skip_infer_table_types = ["pdf", "jpg", "png", "heic"]

if file is not None:
file.seek(0)

Expand Down