mirror of
https://github.com/hwchase17/langchain.git
synced 2025-09-24 03:52:10 +00:00
core[lint]: fix issue with unused ignore in __init__.py
files (#30825)
Fixing a race condition between https://github.com/langchain-ai/langchain/pull/30769 and https://github.com/langchain-ai/langchain/pull/30737
This commit is contained in:
@@ -57,7 +57,7 @@ _dynamic_imports = {
|
||||
|
||||
def __getattr__(attr_name: str) -> object:
|
||||
module_name = _dynamic_imports.get(attr_name)
|
||||
package = __spec__.parent # type: ignore[name-defined]
|
||||
package = __spec__.parent
|
||||
if module_name == "__module__" or module_name is None:
|
||||
result = import_module(f".{attr_name}", package=package)
|
||||
else:
|
||||
|
Reference in New Issue
Block a user