aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--generalresearch/models/thl/survey/penalty.py5
-rw-r--r--pyproject.toml4
2 files changed, 4 insertions, 5 deletions
diff --git a/generalresearch/models/thl/survey/penalty.py b/generalresearch/models/thl/survey/penalty.py
index e9515d4..0f544b8 100644
--- a/generalresearch/models/thl/survey/penalty.py
+++ b/generalresearch/models/thl/survey/penalty.py
@@ -2,10 +2,9 @@ from __future__ import annotations
import abc
from datetime import datetime, timezone
-from typing import Literal
+from typing import Annotated, Literal
from pydantic import BaseModel, ConfigDict, Field, TypeAdapter
-from typing_extensions import Annotated
from generalresearch.models import Source
from generalresearch.models.custom_types import (
@@ -59,7 +58,7 @@ class TeamSurveyPenalty(SurveyPenalty):
Penalty = Annotated[
- Union[BPSurveyPenalty, TeamSurveyPenalty],
+ BPSurveyPenalty | TeamSurveyPenalty,
Field(discriminator="kind"),
]
PenaltyListAdapter = TypeAdapter(list[Penalty])
diff --git a/pyproject.toml b/pyproject.toml
index 2d1d246..e855d16 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -4,12 +4,12 @@ build-backend = "setuptools.build_meta"
[project]
name = "generalresearch"
-version = "3.4.3"
+version = "3.4.4"
description = "Python Utilities for General Research"
readme = "README.md"
requires-python = ">=3.10"
dependencies = [
- "fastapi",
+# "fastapi",
"Faker",
"PyMySQL",
"psycopg",