refactor: replace bare dict with dict[str, Any] in plugin endpoint_service (#35065)

This commit is contained in:
wdeveloper16 2026-04-13 15:00:27 +02:00 committed by GitHub
parent 8dd4473432
commit e8dd3461e8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1,9 +1,13 @@
from typing import Any
from core.plugin.impl.endpoint import PluginEndpointClient
class EndpointService:
@classmethod
def create_endpoint(cls, tenant_id: str, user_id: str, plugin_unique_identifier: str, name: str, settings: dict):
def create_endpoint(
cls, tenant_id: str, user_id: str, plugin_unique_identifier: str, name: str, settings: dict[str, Any]
):
return PluginEndpointClient().create_endpoint(
tenant_id=tenant_id,
user_id=user_id,
@ -32,7 +36,7 @@ class EndpointService:
)
@classmethod
def update_endpoint(cls, tenant_id: str, user_id: str, endpoint_id: str, name: str, settings: dict):
def update_endpoint(cls, tenant_id: str, user_id: str, endpoint_id: str, name: str, settings: dict[str, Any]):
return PluginEndpointClient().update_endpoint(
tenant_id=tenant_id,
user_id=user_id,