Skip to content

Commit 08fbbb4

Browse files
committed
python 3.9 compliance
1 parent 9037619 commit 08fbbb4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/python_testing/spec_parsing_support.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
import xml.etree.ElementTree as ElementTree
2323
from copy import deepcopy
2424
from dataclasses import dataclass
25-
from enum import Enum, StrEnum, auto
25+
from enum import Enum, auto
2626
from typing import Callable, Optional
2727

2828
import chip.clusters as Clusters
@@ -502,7 +502,7 @@ class PrebuiltDataModelDirectory(Enum):
502502
kMaster = auto()
503503

504504

505-
class DataModelLevel(StrEnum):
505+
class DataModelLevel(str, Enum):
506506
kCluster = 'clusters'
507507
kDeviceType = 'device_types'
508508

0 commit comments

Comments
 (0)