Skip to content

Commit 8171a1e

Browse files
committed
swap from Dict to built-in dict
Signed-off-by: Jordan Dubrick <[email protected]>
1 parent 6960ebd commit 8171a1e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/models/config.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
"""Model with service configuration."""
22

33
from pathlib import Path
4-
from typing import Optional, Any, Pattern, Dict
4+
from typing import Optional, Any, Pattern
55
from enum import Enum
66
from functools import cached_property
77
import re
@@ -420,7 +420,7 @@ class CustomProfile:
420420
"""Custom profile customization for prompts and validation."""
421421

422422
path: str
423-
prompts: Dict[str, str] = Field(default={}, init=False)
423+
prompts: dict[str, str] = Field(default={}, init=False)
424424

425425
def __post_init__(self) -> None:
426426
"""Validate and load profile."""
@@ -433,7 +433,7 @@ def _validate_and_process(self) -> None:
433433
if profile_module is not None and checks.is_valid_profile(profile_module):
434434
self.prompts = profile_module.PROFILE_CONFIG.get("system_prompts", {})
435435

436-
def get_prompts(self) -> Dict[str, str]:
436+
def get_prompts(self) -> dict[str, str]:
437437
"""Retrieve prompt attribute."""
438438
return self.prompts
439439

0 commit comments

Comments
 (0)