Skip to content

Commit 1c22102

Browse files
committed
swap from Dict to built-in dict
Signed-off-by: Jordan Dubrick <jdubrick@redhat.com>
1 parent 025bcdb commit 1c22102

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
@@ -417,7 +417,7 @@ class CustomProfile:
417417
"""Custom profile customization for prompts and validation."""
418418

419419
path: str
420-
prompts: Dict[str, str] = Field(default={}, init=False)
420+
prompts: dict[str, str] = Field(default={}, init=False)
421421

422422
def __post_init__(self) -> None:
423423
"""Validate and load profile."""
@@ -430,7 +430,7 @@ def _validate_and_process(self) -> None:
430430
if profile_module is not None and checks.is_valid_profile(profile_module):
431431
self.prompts = profile_module.PROFILE_CONFIG.get("system_prompts", {})
432432

433-
def get_prompts(self) -> Dict[str, str]:
433+
def get_prompts(self) -> dict[str, str]:
434434
"""Retrieve prompt attribute."""
435435
return self.prompts
436436

0 commit comments

Comments
 (0)