mirror of
https://github.com/hwchase17/langchain.git
synced 2025-06-29 18:08:36 +00:00
Docs: Add 'Optional' to installation section to fix an issue (#28902)
Problem: "Optional" object is used in one example without importing, which raises the following error when copying the example into IDE or Jupyter Lab  Solution: Just importing Optional from typing_extensions module, this solves the problem! --------- Co-authored-by: Erick Friis <erick@langchain.dev>
This commit is contained in:
parent
97dc906a18
commit
b258ff1930
@ -165,6 +165,8 @@
|
|||||||
}
|
}
|
||||||
],
|
],
|
||||||
"source": [
|
"source": [
|
||||||
|
"from typing import Optional\n",
|
||||||
|
"\n",
|
||||||
"from typing_extensions import Annotated, TypedDict\n",
|
"from typing_extensions import Annotated, TypedDict\n",
|
||||||
"\n",
|
"\n",
|
||||||
"\n",
|
"\n",
|
||||||
|
Loading…
Reference in New Issue
Block a user