Skip to content

Commit fa988b6

Browse files
committed
Use (str, Enum) not StrEnum to work w Python <3.11
1 parent 23fddab commit fa988b6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

jupyter_scheduler/models.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import os
2-
from enum import Enum, StrEnum
2+
from enum import Enum
33
from typing import Dict, List, Optional, Type, Union
44

55
from pydantic import BaseModel, root_validator
@@ -11,7 +11,7 @@
1111
SCHEDULE_RE = ""
1212

1313

14-
class NotificationEvent(StrEnum):
14+
class NotificationEvent(str, Enum):
1515
"""Enum representing events that should trigger a notification."""
1616

1717
SUCCESS = "Success"

0 commit comments

Comments
 (0)