Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Ravencentric committed Nov 19, 2024
1 parent 5ef9135 commit 361d765
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
1 change: 1 addition & 0 deletions .github/workflows/lint-and-type-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ on:
- 'tests/**'
- '.github/workflows/lint-and-type-check.yml'
workflow_dispatch:
workflow_call:

defaults:
run:
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,12 @@ jobs:
tests:
name: Tests
uses: ./.github/workflows/tests.yml
lint:
name: Lint
uses: ./.github/workflows/lint-and-type-check.yml
release:
name: Release
needs: [tests]
needs: [tests, lint]
environment:
name: release
url: https://pypi.org/project/stringenum/
Expand Down
4 changes: 2 additions & 2 deletions src/stringenum/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@
else:
from enum import Enum
from enum import EnumMeta as EnumType

# Copy of StrEnum for Python < 3.11
# https://github.com/python/cpython/blob/bb98a0afd8598ce80f0e6d3f768b128eab68f40a/Lib/enum.py#L1351-L1382
class StrEnum(str, Enum): # pragma: no cover
class StrEnum(str, Enum): # pragma: no cover
"""Enum where members are also (and must be) strings."""

def __new__(cls, *values: str) -> Self:
Expand Down

0 comments on commit 361d765

Please sign in to comment.