mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-06-28 10:54:19 +00:00
feat: drop python 3.10 support
dropped python3.10, updated pyproject and dependencies, and also removed some blocks of code with special handling for enum.StrEnum Signed-off-by: Charlie Doern <cdoern@redhat.com>
This commit is contained in:
parent
7d812e3bf0
commit
12d860744d
32 changed files with 63 additions and 104 deletions
|
@ -4,21 +4,11 @@
|
|||
# This source code is licensed under the terms described in the LICENSE file in
|
||||
# the root directory of this source tree.
|
||||
|
||||
import sys
|
||||
from enum import Enum
|
||||
|
||||
from enum import StrEnum
|
||||
|
||||
from pydantic import BaseModel, Field
|
||||
|
||||
# TODO: use enum.StrEnum when we drop support for python 3.10
|
||||
if sys.version_info >= (3, 11):
|
||||
from enum import StrEnum
|
||||
else:
|
||||
|
||||
class StrEnum(str, Enum):
|
||||
"""Backport of StrEnum for Python 3.10 and below."""
|
||||
|
||||
pass
|
||||
|
||||
|
||||
class ResourceType(StrEnum):
|
||||
model = "model"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue