mirror of
https://github.com/hwchase17/langchain.git
synced 2025-08-26 13:01:55 +00:00
Undo changes to langchain namespace
This commit is contained in:
parent
abe56f0048
commit
b76e9bd579
@ -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",
|
||||
]
|
||||
|
@ -14,5 +14,4 @@ def test_parsers_public_api_correct() -> None:
|
||||
"PyMuPDFParser",
|
||||
"PyPDFium2Parser",
|
||||
"PDFPlumberParser",
|
||||
"ZeroxPDFParser",
|
||||
}
|
||||
|
@ -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 "
|
||||
|
Loading…
Reference in New Issue
Block a user