Skip to content

Commit

Permalink
Fix: list[str] rise an error in ubuntu 20.04
Browse files Browse the repository at this point in the history
Using List from typing instead to assure the compatibility between python3.8 and above
  • Loading branch information
Antonyjin committed Nov 5, 2024
1 parent 8894347 commit 5674356
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/aleph/sdk/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import os
from pathlib import Path
from shutil import which
from typing import ClassVar, Dict, Optional, Union
from typing import ClassVar, Dict, Optional, Union, List

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

model_config = ConfigDict(
env_prefix="ALEPH_", case_sensitive=False, env_file=".env"
Expand Down

0 comments on commit 5674356

Please sign in to comment.