Skip to content

Commit cb5bc2f

Browse files
committed
fix: replace StrEnum with str, Enum
StrEnum is only available in python >= 3.11
1 parent 73ad54d commit cb5bc2f

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎src/osw/utils/oold.py‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"""
55

66
from copy import deepcopy
7-
from enum import StrEnum
7+
from enum import Enum
88
from typing import Dict, Optional, TypeVar
99

1010
from pydantic import BaseModel
@@ -246,7 +246,7 @@ def merge_jsonld_context_object_list(context: list) -> list:
246246
return result
247247

248248

249-
class AggregateGeneratedSchemasParamMode(StrEnum):
249+
class AggregateGeneratedSchemasParamMode(str, Enum):
250250
ROOT_LEVEL = "root_level"
251251
""" The generated schema is merged at the root level """
252252
DEFINITIONS_SECTION = "definitions_section"

0 commit comments

Comments
 (0)