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
pull/11420/head
bholagabbar 1 year ago committed by GitHub
parent 22165cb2fc
commit b9fad28f5e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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",

Loading…
Cancel
Save