From ffee4aa118da135f8dca81f5470c541f84f97061 Mon Sep 17 00:00:00 2001 From: Tim Adler Date: Sat, 7 Sep 2024 15:35:37 +0200 Subject: [PATCH] Fix Enum problem with python 3.10 --- .github/workflows/ci.yml | 4 ++-- src/web_watchr/compare/abstract_comparer.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 2809f54..317165b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -10,8 +10,8 @@ on: branches: [ "main" ] jobs: - build: - + test: + name: Test on Python ${{ matrix.python-version }} runs-on: ubuntu-latest strategy: fail-fast: false diff --git a/src/web_watchr/compare/abstract_comparer.py b/src/web_watchr/compare/abstract_comparer.py index 32b7152..63109ae 100644 --- a/src/web_watchr/compare/abstract_comparer.py +++ b/src/web_watchr/compare/abstract_comparer.py @@ -1,10 +1,10 @@ from abc import ABC, abstractmethod -from enum import StrEnum, auto +from enum import Enum, auto from pydantic import BaseModel -class Status(StrEnum): +class Status(Enum): CHANGED = auto() NO_CHANGES = auto()