Skip to content

Commit

Permalink
Fix typing imports in extraction usecase (langchain-ai#11402)
Browse files Browse the repository at this point in the history
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
  • Loading branch information
bholagabbar authored Oct 4, 2023
1 parent 22165cb commit b9fad28
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/extras/use_cases/extraction.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -443,7 +443,7 @@
}
],
"source": [
"from typing import Sequence\n",
"from typing import Sequence, Optional\n",
"from langchain.prompts import (\n",
" PromptTemplate,\n",
" ChatPromptTemplate,\n",
Expand Down

0 comments on commit b9fad28

Please sign in to comment.