From 4fc0744433ea7091c5f8b59aace1a60dc5078bde Mon Sep 17 00:00:00 2001 From: lebaudantoine Date: Thu, 10 Jul 2025 15:12:48 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B(summary)=20fix=20minor=20Python=20?= =?UTF-8?q?typing=20issue?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Correct type annotation to resolve static type checking warnings. --- src/summary/summary/core/config.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/summary/summary/core/config.py b/src/summary/summary/core/config.py index 4a70f404..9b5af0c0 100644 --- a/src/summary/summary/core/config.py +++ b/src/summary/summary/core/config.py @@ -1,7 +1,7 @@ """Application configuration and settings.""" from functools import lru_cache -from typing import Annotated, Optional +from typing import Annotated, Optional, List from fastapi import Depends from pydantic_settings import BaseSettings, SettingsConfigDict @@ -40,7 +40,7 @@ class Settings(BaseSettings): # Webhook-related settings webhook_max_retries: int = 2 - webhook_status_forcelist: list[int] = [502, 503, 504] + webhook_status_forcelist: List[int] = [502, 503, 504] webhook_backoff_factor: float = 0.1 webhook_api_token: str webhook_url: str