Skip to content

Commit

Permalink
rm strEnum py39 py310 compat
Browse files Browse the repository at this point in the history
  • Loading branch information
kliment-slice committed Sep 18, 2024
1 parent 704502c commit 32a9026
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ansys/simai/core/data/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
import os
import pathlib
from contextlib import contextmanager
from enum import StrEnum
from enum import Enum
from numbers import Number
from typing import (
TYPE_CHECKING,
Expand Down Expand Up @@ -283,7 +283,7 @@ def get_object_from_identifiable(
raise InvalidArguments(f"Argument {identifiable} is neither a data model nor an ID string.")


class SubsetEnum(StrEnum):
class SubsetEnum(str, Enum):
""":obj:`SubsetEnum`: enumeration of possible subsets TrainingData can belong to if any."""

TRAINING = "Training"
Expand Down

0 comments on commit 32a9026

Please sign in to comment.