Skip to content

Commit 5674356

Browse files
committed
Fix: list[str] rise an error in ubuntu 20.04
Using List from typing instead to assure the compatibility between python3.8 and above
1 parent 8894347 commit 5674356

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/aleph/sdk/conf.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import os
44
from pathlib import Path
55
from shutil import which
6-
from typing import ClassVar, Dict, Optional, Union
6+
from typing import ClassVar, Dict, Optional, Union, List
77

88
from aleph_message.models import Chain
99
from aleph_message.models.execution.environment import HypervisorType
@@ -141,7 +141,7 @@ class Settings(BaseSettings):
141141
DNS_PROGRAM_DOMAIN: ClassVar[str] = "program.public.aleph.sh"
142142
DNS_INSTANCE_DOMAIN: ClassVar[str] = "instance.public.aleph.sh"
143143
DNS_STATIC_DOMAIN: ClassVar[str] = "static.public.aleph.sh"
144-
DNS_RESOLVERS: ClassVar[list[str]] = ["9.9.9.9", "1.1.1.1"]
144+
DNS_RESOLVERS: ClassVar[List[str]] = ["9.9.9.9", "1.1.1.1"]
145145

146146
model_config = ConfigDict(
147147
env_prefix="ALEPH_", case_sensitive=False, env_file=".env"

0 commit comments

Comments
 (0)