Skip to content

Commit

Permalink
Try fixing error
Browse files Browse the repository at this point in the history
  • Loading branch information
charlesbvll committed Dec 5, 2024
1 parent 9055b48 commit 25353f2
Showing 1 changed file with 17 additions and 7 deletions.
24 changes: 17 additions & 7 deletions dev/flwr_dev/build_docker_image_matrix.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,23 @@

import json
from dataclasses import asdict, dataclass, field
from enum import StrEnum
from typing import Any, Callable, Literal, Optional

try:
from enum import StrEnum

class _DistroName(StrEnum):
ALPINE = "alpine"
UBUNTU = "ubuntu"

except ImportError:
from enum import Enum

class _DistroName(str, Enum):
ALPINE = "alpine"
UBUNTU = "ubuntu"


from typing import Any, Callable, Optional

import typer

Expand All @@ -32,11 +47,6 @@
# assert sys.version_info < (3, 11), "Script requires Python 3.9 or lower."


class _DistroName(StrEnum):
ALPINE = "alpine"
UBUNTU = "ubuntu"


@dataclass
class _Distro:
name: "_DistroName"
Expand Down

0 comments on commit 25353f2

Please sign in to comment.