chore: bump minimum supported Python version to 3.11 (#10386)

This commit is contained in:
Bowen Liang 2024-11-24 13:28:46 +08:00 committed by GitHub
commit 6c8e208ef3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
81 changed files with 271 additions and 300 deletions

View file

@ -3,7 +3,7 @@ import re
import uuid
from collections.abc import Mapping
from datetime import datetime
from enum import Enum
from enum import Enum, StrEnum
from typing import Any, Literal, Optional
import sqlalchemy as sa
@ -32,7 +32,7 @@ class DifySetup(db.Model):
setup_at = db.Column(db.DateTime, nullable=False, server_default=db.text("CURRENT_TIMESTAMP(0)"))
class AppMode(str, Enum):
class AppMode(StrEnum):
COMPLETION = "completion"
WORKFLOW = "workflow"
CHAT = "chat"