Skip to content

Commit 3e06da6

Browse files
Fix ImportError: cannot import name 'StrEnum' from 'enum' on Python 3.10.x
1 parent cf47df0 commit 3e06da6

File tree

1 file changed

+2
-2
lines changed
  • cmake_file_api/kinds/cache

1 file changed

+2
-2
lines changed

cmake_file_api/kinds/cache/v2.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import dataclasses
2-
from enum import StrEnum
2+
from enum import Enum
33
import json
44
from pathlib import Path
55
from typing import Any
@@ -8,7 +8,7 @@
88
from cmake_file_api.kinds.kind import ObjectKind
99

1010

11-
class CacheEntryType(StrEnum):
11+
class CacheEntryType(Enum):
1212
TYPE_BOOL = "BOOL"
1313
TYPE_FILEPATH = "FILEPATH"
1414
TYPE_PATH = "PATH"

0 commit comments

Comments
 (0)