Skip to content

Commit a469064

Browse files
committed
remove types not supported by Python 3.8
1 parent dcba99a commit a469064

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

python_gpt_po/tests/test_multi_provider.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848
"""
4949

5050
# Sample model responses for different providers
51-
OPENAI_MODELS_RESPONSE: dict[str, object] = {
51+
OPENAI_MODELS_RESPONSE = {
5252
"data": [
5353
{"id": "gpt-4"},
5454
{"id": "gpt-4-turbo"},
@@ -58,9 +58,9 @@
5858
"object": "list"
5959
}
6060

61-
AZURE_OPENAI_MODELS_RESPONSE: dict[str, object] = OPENAI_MODELS_RESPONSE
61+
AZURE_OPENAI_MODELS_RESPONSE = OPENAI_MODELS_RESPONSE
6262

63-
ANTHROPIC_MODELS_RESPONSE: dict[str, object] = {
63+
ANTHROPIC_MODELS_RESPONSE = {
6464
"data": [
6565
{"type": "model", "id": "claude-3-7-sonnet-20250219", "display_name": "Claude 3.7 Sonnet", "created_at": "2025-02-19T00:00:00Z"},
6666
{"type": "model", "id": "claude-3-5-sonnet-20241022", "display_name": "Claude 3.5 Sonnet", "created_at": "2024-10-22T00:00:00Z"},
@@ -72,15 +72,15 @@
7272
"last_id": "claude-3-opus-20240229"
7373
}
7474

75-
DEEPSEEK_MODELS_RESPONSE: dict[str, object] = {
75+
DEEPSEEK_MODELS_RESPONSE = {
7676
"data": [
7777
{"id": "deepseek-chat"},
7878
{"id": "deepseek-coder"}
7979
]
8080
}
8181

8282
# Translation responses for different providers
83-
OPENAI_TRANSLATION_RESPONSE: dict[str, object] = {
83+
OPENAI_TRANSLATION_RESPONSE = {
8484
"choices": [
8585
{
8686
"message": {
@@ -90,17 +90,17 @@
9090
]
9191
}
9292

93-
AZURE_OPENAI_TRANSLATION_RESPONSE: dict[str, object] = OPENAI_TRANSLATION_RESPONSE
93+
AZURE_OPENAI_TRANSLATION_RESPONSE = OPENAI_TRANSLATION_RESPONSE
9494

95-
ANTHROPIC_TRANSLATION_RESPONSE: dict[str, object] = {
95+
ANTHROPIC_TRANSLATION_RESPONSE = {
9696
"content": [
9797
{
9898
"text": '["Bonjour", "Monde", "Bienvenue dans notre application", "Au revoir"]'
9999
}
100100
]
101101
}
102102

103-
DEEPSEEK_TRANSLATION_RESPONSE: dict[str, object] = {
103+
DEEPSEEK_TRANSLATION_RESPONSE = {
104104
"choices": [
105105
{
106106
"message": {

0 commit comments

Comments
 (0)