mirror of
https://github.com/hwchase17/langchain.git
synced 2025-05-18 13:31:36 +00:00
Fix typing imports in extraction usecase (#11402)
The person class here: https://python.langchain.com/docs/use_cases/extraction#pydantic-1 has attributes `dog_breed` and `dog_name` that use `Optional` from typing, but it hasn't been imported. Fixed the import here
This commit is contained in:
parent
22165cb2fc
commit
b9fad28f5e
@ -443,7 +443,7 @@
|
|||||||
}
|
}
|
||||||
],
|
],
|
||||||
"source": [
|
"source": [
|
||||||
"from typing import Sequence\n",
|
"from typing import Sequence, Optional\n",
|
||||||
"from langchain.prompts import (\n",
|
"from langchain.prompts import (\n",
|
||||||
" PromptTemplate,\n",
|
" PromptTemplate,\n",
|
||||||
" ChatPromptTemplate,\n",
|
" ChatPromptTemplate,\n",
|
||||||
|
Loading…
Reference in New Issue
Block a user