Skip to content

Commit

Permalink
Merge pull request #81 from Gabriel2409/bugfix/distributedjob-type-hint
Browse files Browse the repository at this point in the history
Make Framework an Enum
  • Loading branch information
marrrcin committed Oct 11, 2023
2 parents 1a7f8dd + 8c6e139 commit 8e5979f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion kedro_azureml/distributed/config.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
import json
from dataclasses import asdict, dataclass
from enum import Enum
from typing import Optional, Union


class Framework:
# can be replaced by StrEnum starting from python 3.11
class Framework(str, Enum):
PyTorch = "PyTorch"
TensorFlow = "TensorFlow"
MPI = "MPI"
Expand Down

0 comments on commit 8e5979f

Please sign in to comment.