Skip to content

Commit

Permalink
python3.10 compat
Browse files Browse the repository at this point in the history
  • Loading branch information
aantn committed May 30, 2024
1 parent 508f462 commit b2c891d
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions holmes/config.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import logging
import os.path
from enum import StrEnum
from enum import Enum
from typing import (Annotated, Any, ClassVar, List, Literal, Optional, Pattern,
TypeVar, Union)

Expand All @@ -21,7 +21,7 @@
from holmes.utils.pydantic_utils import RobustaBaseConfig, load_model_from_file


class LLMType(StrEnum):
class LLMType(str, Enum):
OPENAI = "openai"
AZURE = "azure"

Expand Down
4 changes: 2 additions & 2 deletions holmes/core/issue.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
from datetime import datetime
from enum import StrEnum
from enum import Enum
from typing import Optional

from pydantic import BaseModel, ConfigDict


class IssueStatus (StrEnum):
class IssueStatus (str, Enum):
OPEN = "open"
CLOSED = "closed"

Expand Down
4 changes: 2 additions & 2 deletions holmes/plugins/destinations/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from enum import StrEnum
from enum import Enum

class DestinationType(StrEnum):
class DestinationType(str, Enum):
SLACK = "slack"
CLI = "cli"

0 comments on commit b2c891d

Please sign in to comment.