mirror of
https://github.com/hwchase17/langchain.git
synced 2025-09-04 20:46:45 +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 EdenAiObjectDetectionTool(EdenaiTool):
|
||||
|
||||
"""
|
||||
|
||||
name = "edenai_object_detection"
|
||||
name: str = "edenai_object_detection"
|
||||
|
||||
description = (
|
||||
description: str = (
|
||||
"A wrapper around edenai Services Object Detection . "
|
||||
"""Useful for when you have to do an to identify and locate
|
||||
(with bounding boxes) objects in an image """
|
||||
@@ -33,8 +33,8 @@ class EdenAiObjectDetectionTool(EdenaiTool):
|
||||
|
||||
show_positions: bool = False
|
||||
|
||||
feature = "image"
|
||||
subfeature = "object_detection"
|
||||
feature: str = "image"
|
||||
subfeature: str = "object_detection"
|
||||
|
||||
def _parse_json(self, json_data: dict) -> str:
|
||||
result = []
|
||||
|
Reference in New Issue
Block a user