From b9fad28f5e093415d76aeb71b5e555eb87fd2ec2 Mon Sep 17 00:00:00 2001 From: bholagabbar <11693595+bholagabbar@users.noreply.github.com> Date: Wed, 4 Oct 2023 16:55:02 -0400 Subject: [PATCH] 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 --- docs/extras/use_cases/extraction.ipynb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/extras/use_cases/extraction.ipynb b/docs/extras/use_cases/extraction.ipynb index 628026127..b60702975 100644 --- a/docs/extras/use_cases/extraction.ipynb +++ b/docs/extras/use_cases/extraction.ipynb @@ -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",