remove unused libraries (#1161)
This commit is contained in:
@@ -2,7 +2,6 @@ from enum import StrEnum
|
||||
from typing import Annotated, Any, Dict, Type, TypeVar
|
||||
|
||||
import structlog
|
||||
from deprecation import deprecated
|
||||
from litellm import ConfigDict
|
||||
from pydantic import BaseModel, Field, ValidationError
|
||||
|
||||
@@ -177,7 +176,7 @@ class UploadFileAction(WebAction):
|
||||
return f"UploadFileAction(element_id={self.element_id}, file={self.file_url}, is_upload_file_tag={self.is_upload_file_tag})"
|
||||
|
||||
|
||||
@deprecated("This action is not used in the current implementation. Click actions are used instead.")
|
||||
# this is a deprecated action type
|
||||
class DownloadFileAction(WebAction):
|
||||
action_type: ActionType = ActionType.DOWNLOAD_FILE
|
||||
file_name: str
|
||||
|
||||
@@ -8,7 +8,6 @@ from datetime import datetime, timedelta, timezone
|
||||
from typing import Any, Awaitable, Callable, List
|
||||
|
||||
import structlog
|
||||
from deprecation import deprecated
|
||||
from playwright.async_api import FileChooser, Frame, Locator, Page, TimeoutError
|
||||
from pydantic import BaseModel
|
||||
|
||||
@@ -641,7 +640,7 @@ async def handle_upload_file_action(
|
||||
)
|
||||
|
||||
|
||||
@deprecated("This function is deprecated. Downloads are handled by the click action handler now.")
|
||||
# This function is deprecated. Downloads are handled by the click action handler now.
|
||||
async def handle_download_file_action(
|
||||
action: actions.DownloadFileAction,
|
||||
page: Page,
|
||||
|
||||
Reference in New Issue
Block a user