diff options
| author | stuppie | 2026-08-28 10:56:58 -0600 |
|---|---|---|
| committer | stuppie | 2026-08-28 10:56:58 -0600 |
| commit | ec850b9ddd5cf520646f0f8c4a5f0a996b78ac94 (patch) | |
| tree | c5b2af5687dd9acdcef94cec518ecf39197939af | |
| parent | c5aa734cad3d4a8a1f01d113fff05198218e7879 (diff) | |
| download | generalresearch-ec850b9ddd5cf520646f0f8c4a5f0a996b78ac94.tar.gz generalresearch-ec850b9ddd5cf520646f0f8c4a5f0a996b78ac94.zip | |
fix broken ruff imports. fastapi isnt a dependencyv3.4.4
| -rw-r--r-- | generalresearch/models/thl/survey/penalty.py | 5 | ||||
| -rw-r--r-- | pyproject.toml | 4 |
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", |
