refactor: replace bare dict with dict[str, Any] in ops_service tracin… (#35064)

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

View File

@ -1,3 +1,5 @@
from typing import Any
from sqlalchemy import select
from core.ops.entities.config_entity import BaseTracingConfig
@ -135,7 +137,7 @@ class OpsService:
return trace_config_data.to_dict()
@classmethod
def create_tracing_app_config(cls, app_id: str, tracing_provider: str, tracing_config: dict):
def create_tracing_app_config(cls, app_id: str, tracing_provider: str, tracing_config: dict[str, Any]):
"""
Create tracing app config
:param app_id: app id
@ -210,7 +212,7 @@ class OpsService:
return {"result": "success"}
@classmethod
def update_tracing_app_config(cls, app_id: str, tracing_provider: str, tracing_config: dict):
def update_tracing_app_config(cls, app_id: str, tracing_provider: str, tracing_config: dict[str, Any]):
"""
Update tracing app config
:param app_id: app id