Skip to content

Commit 2b9f12b

Browse files
yassineclaude
andcommitted
fix Python 3.9 type annotation in config.py
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 3210717 commit 2b9f12b

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Scweet/config.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
import json
44
from enum import Enum
5-
from typing import Any, Optional
5+
from typing import Any, Optional, Union
66

77
from pydantic import BaseModel, Field, field_validator
88

@@ -16,7 +16,7 @@ class ApiHttpMode(str, Enum):
1616
class ScweetConfig(BaseModel):
1717
# Core
1818
db_path: str = "scweet_state.db"
19-
proxy: Optional[dict[str, Any] | str] = None
19+
proxy: Optional[Union[dict[str, Any], str]] = None
2020
concurrency: int = Field(default=5, ge=1)
2121

2222
# Output

0 commit comments

Comments
 (0)