Skip to content

Commit

Permalink
Define custom StrEnum
Browse files Browse the repository at this point in the history
This only exists in 3.11
  • Loading branch information
RealOrangeOne committed Aug 17, 2023
1 parent c7489f1 commit 166ce2f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions heroku_audit/format.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import csv
import json
from enum import StrEnum
from enum import Enum
from io import StringIO
from typing import Annotated, Any

Expand All @@ -22,7 +22,7 @@ def default(self, o: Any) -> Any:
return super().default(o)


class Format(StrEnum):
class Format(str, Enum):
TABLE = "table"
CSV = "csv"
JSON = "json"
Expand Down

0 comments on commit 166ce2f

Please sign in to comment.