fix: docs typing issues

This commit is contained in:
Mason Daugherty 2025-08-06 23:50:33 -04:00
parent ae8f58ac6f
commit cc6139860c
No known key found for this signature in database
2 changed files with 6 additions and 3 deletions

View File

@ -97,7 +97,7 @@ def _load_module_members(module_path: str, namespace: str) -> ModuleMembers:
if type(type_) is typing_extensions._TypedDictMeta: # type: ignore if type(type_) is typing_extensions._TypedDictMeta: # type: ignore
kind: ClassKind = "TypedDict" kind: ClassKind = "TypedDict"
elif type(type_) is typing._TypedDictMeta: # type: ignore elif type(type_) is typing._TypedDictMeta: # type: ignore
kind: ClassKind = "TypedDict" kind = "TypedDict"
elif ( elif (
issubclass(type_, Runnable) issubclass(type_, Runnable)
and issubclass(type_, BaseModel) and issubclass(type_, BaseModel)
@ -189,7 +189,7 @@ def _load_package_modules(
if isinstance(package_directory, str) if isinstance(package_directory, str)
else package_directory else package_directory
) )
modules_by_namespace = {} modules_by_namespace: Dict[str, ModuleMembers] = {}
# Get the high level package name # Get the high level package name
package_name = package_path.name package_name = package_path.name

View File

@ -12,7 +12,10 @@ readme = "README.md"
repository = "https://www.github.com/langchain-ai/langchain" repository = "https://www.github.com/langchain-ai/langchain"
[dependency-groups] [dependency-groups]
lint = ["ruff<0.13,>=0.12.2"] lint = [
"ruff<0.13,>=0.12.2",
"types-toml",
]
dev = [ dev = [
"langchain-core", "langchain-core",
"langchain-text-splitters", "langchain-text-splitters",