Undo changes to langchain namespace

This commit is contained in:
Eugene Yurtsev 2025-03-06 22:19:40 -05:00
parent abe56f0048
commit b76e9bd579
3 changed files with 1 additions and 5 deletions

View File

@ -16,7 +16,6 @@ if TYPE_CHECKING:
PyMuPDFParser,
PyPDFium2Parser,
PyPDFParser,
ZeroxPDFParser,
)
# Create a way to dynamically look up deprecated imports.
@ -35,7 +34,6 @@ DEPRECATED_LOOKUP = {
"PyMuPDFParser": "langchain_community.document_loaders.parsers.pdf",
"PyPDFium2Parser": "langchain_community.document_loaders.parsers.pdf",
"PyPDFParser": "langchain_community.document_loaders.parsers.pdf",
"ZeroxPDFParser": "langchain_community.document_loaders.parsers.pdf",
}
_import_attribute = create_importer(__package__, deprecated_lookups=DEPRECATED_LOOKUP)
@ -57,5 +55,4 @@ __all__ = [
"PyMuPDFParser",
"PyPDFium2Parser",
"PyPDFParser",
"ZeroxPDFParser",
]

View File

@ -14,5 +14,4 @@ def test_parsers_public_api_correct() -> None:
"PyMuPDFParser",
"PyPDFium2Parser",
"PDFPlumberParser",
"ZeroxPDFParser",
}

View File

@ -96,7 +96,7 @@ def test_no_more_changes_to_proxy_community() -> None:
# most cases.
hash_ += len(str(sorted(deprecated_lookup.items())))
evil_magic_number = 38692
evil_magic_number = 38620
assert hash_ == evil_magic_number, (
"If you're triggering this test, you're likely adding a new import "