Skip to content

Commit

Permalink
Fix py311 StrEnum incompatibility.
Browse files Browse the repository at this point in the history
  • Loading branch information
eli64s committed Aug 31, 2024
1 parent 708e7ae commit d9ae89f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "readmeai"
version = "0.5.086"
version = "0.5.087"
description = "README file generator, powered by large language model APIs 👾"
authors = ["Eli <egsalamie@gmail.com>"]
license = "MIT"
Expand Down
10 changes: 5 additions & 5 deletions readmeai/templates/header.py
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
import enum
from enum import Enum
from typing import Any, ClassVar

from .base_template import BaseTemplate


class HeaderStyle(enum.StrEnum):
class HeaderStyle(Enum):
"""
Enum containing header styles for the README file.
"""

CLASSIC = enum.auto()
COMPACT = enum.auto()
MODERN = enum.auto()
CLASSIC = "classic"
COMPACT = "compact"
MODERN = "modern"


class HeaderTemplate(BaseTemplate):
Expand Down

0 comments on commit d9ae89f

Please sign in to comment.