mirror of
https://github.com/hwchase17/langchain.git
synced 2025-09-06 21:43:44 +00:00
community[patch]: Add missing type annotations (#22758)
Add missing type annotations to objects in community. These missing type annotations will raise type errors in pydantic 2.
This commit is contained in:
@@ -22,9 +22,9 @@ class EdenAiParsingInvoiceTool(EdenaiTool):
|
||||
|
||||
"""
|
||||
|
||||
name = "edenai_invoice_parsing"
|
||||
name: str = "edenai_invoice_parsing"
|
||||
|
||||
description = (
|
||||
description: str = (
|
||||
"A wrapper around edenai Services invoice parsing. "
|
||||
"""Useful for when you have to extract information from
|
||||
an image it enables to take invoices
|
||||
@@ -39,8 +39,8 @@ class EdenAiParsingInvoiceTool(EdenaiTool):
|
||||
language of the image passed to the model.
|
||||
"""
|
||||
|
||||
feature = "ocr"
|
||||
subfeature = "invoice_parser"
|
||||
feature: str = "ocr"
|
||||
subfeature: str = "invoice_parser"
|
||||
|
||||
def _parse_response(self, response: list) -> str:
|
||||
formatted_list: list = []
|
||||
|
Reference in New Issue
Block a user